Skip to content

Commit

Permalink
Fixed divide by zero warning in nu to lambda conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jaladh-singhal committed Aug 21, 2020
1 parent 33b7648 commit 2502110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tardis/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def __init__(
mask
]
self.last_line_interaction_out_angstrom = u.Quantity(
output_nu, "Hz"
).to(u.Angstrom, equivalencies=u.spectral())[mask]
output_nu[mask], "Hz"
).to(u.Angstrom, equivalencies=u.spectral())
self.last_line_interaction_in_angstrom = u.Quantity(
last_interaction_in_nu, "Hz"
).to(u.Angstrom, equivalencies=u.spectral())[mask]
last_interaction_in_nu[mask], "Hz"
).to(u.Angstrom, equivalencies=u.spectral())
self.lines = lines

self._wavelength_start = 0 * u.angstrom
Expand Down

0 comments on commit 2502110

Please sign in to comment.