Skip to content

Commit

Permalink
remove 4pi comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Dec 10, 2024
1 parent f8f4213 commit 5d729fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions stardis/plasma/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def calculate(
# Radiation broadening parameter is approximated as the einstein A coefficient. Vald parameters are in log scale.
linelist["A_ul"] = 10 ** (
linelist["rad"]
) # see 1995A&AS..112..525P for appropriate units - may be off by a factor of 4pi
) # see 1995A&AS..112..525P for appropriate units

# Need to remove autoionization lines - can't handle with current broadening treatment because can't calculate effective principal quantum number
valid_indices = linelist.level_energy_upper < linelist.ionization_energy
Expand Down Expand Up @@ -451,8 +451,7 @@ def calculate(
# Radiation broadening parameter is approximated as the einstein A coefficient. Vald parameters are in log scale.
linelist["A_ul"] = 10 ** (
linelist["rad"]
) # see 1995A&AS..112..525P for appropriate units - may be off by a factor of 4pi

) # see 1995A&AS..112..525P for appropriate units
return alphas, linelist


Expand Down
4 changes: 2 additions & 2 deletions stardis/plasma/molecules.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def calculate(
# Radiation broadening parameter is approximated as the einstein A coefficient. Vald parameters are in log scale.
linelist["A_ul"] = 10 ** (
linelist["rad"]
) # see 1995A&AS..112..525P for appropriate units - may be off by a factor of 4pi
) # see 1995A&AS..112..525P for appropriate units

return alphas, linelist

Expand Down Expand Up @@ -416,6 +416,6 @@ def calculate(
# Radiation broadening parameter is approximated as the einstein A coefficient. Vald parameters are in log scale.
linelist["A_ul"] = 10 ** (
linelist["rad"]
) # see 1995A&AS..112..525P for appropriate units - may be off by a factor of 4pi
) # see 1995A&AS..112..525P for appropriate units

return alphas, linelist

0 comments on commit 5d729fc

Please sign in to comment.