Skip to content

Commit

Permalink
Fix unit conversion typo
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojarred committed May 13, 2024
1 parent bbf4e26 commit 61e30c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravitational_wave_toy/observe.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_flux(self, energy: u.Quantity, time: u.Quantity | None = None):
if not energy.unit.physical_type == "energy":
raise ValueError(f"energy must be an energy quantity, got {energy}")

energy.to("GeV")
energy = energy.to("GeV")

if time is None:
time = self.time
Expand Down

0 comments on commit 61e30c2

Please sign in to comment.