Skip to content

Commit

Permalink
Minor fix for GPStime in injection
Browse files Browse the repository at this point in the history
  • Loading branch information
transientlunatic committed Oct 4, 2024
1 parent 62ce6c1 commit 377ecbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heron/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def injection_parameters_add_units(parameters):
UNITS = {"luminosity_distance": u.megaparsec, "m1": u.solMass, "m2": u.solMass}

for parameter, value in parameters.items():
if not isinstance(value, u.Quantity) and parameter in UNITS:
if not isinstance(value, u.Quantity) and (parameter in UNITS.keys()):
parameters[parameter] = value * UNITS[parameter]
return parameters

Expand Down

0 comments on commit 377ecbb

Please sign in to comment.