Skip to content

Commit

Permalink
[BUG] Fixed bug in parse_label_LS for Julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagopereira committed Feb 5, 2024
1 parent 145f23b commit f4cb985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zeeman.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ function parse_label_LS(label)
'T' => 14, 'U' => 15,'V' => 11, 'W' => 12, 'X' => 19, 'Z' => 20
)
# Remove characters after O and E, handle all strange cases
if count('E', label) > 0 && count('O', label) > 0
if count("E", label) > 0 && count("O", label) > 0
if findlast("E", label) > findlast("O", label)
label = split(label, "E")[end-1]
else
label = split(label, "O")[end-1]
end
elseif count('E', label) > 0
elseif count("E", label) > 0
label = split(label, "E")[end-1]
elseif count('O', label) > 0
elseif count("O", label) > 0
label = split(label, "O")[end-1]
end
tmp = split(label)
Expand Down

2 comments on commit f4cb985

@tiagopereira
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

New features

  • Compute Zeeman components for lines
  • Added support for AtomicLine without strings
  • Improved performance of read_atmos_multi3d

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/100334

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.1 -m "<description of version>" f4cb985e52b1a4b4328abfee113810251e3af621
git push origin v0.2.1

Please sign in to comment.