Skip to content

Commit

Permalink
Merge pull request #329 from vallis/master
Browse files Browse the repository at this point in the history
Handle case in pulsar.py/PINTPulsar where PINT DMX error is None, so that float conversion is not attempted
  • Loading branch information
vallis authored Dec 21, 2022
2 parents c220cb6 + 85a1065 commit 7d654ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise/pulsar.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _set_dm(self, model):
dmx = {
par: {
"DMX": float(model[par].value),
"DMXerr": float(model[par].uncertainty_value),
"DMXerr": None if model[par].uncertainty_value is None else float(model[par].uncertainty_value),
"DMXR1": float(model[par[:3] + "R1" + par[3:]].value),
"DMXR2": float(model[par[:3] + "R2" + par[3:]].value),
"fit": par in pars,
Expand Down

0 comments on commit 7d654ee

Please sign in to comment.