Skip to content

Commit

Permalink
Handle case where PINT DMX error is None, so that float conversion is…
Browse files Browse the repository at this point in the history
… not attempted
  • Loading branch information
Michele Vallisneri authored and Michele Vallisneri committed Dec 20, 2022
1 parent c220cb6 commit 85a1065
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 85a1065

Please sign in to comment.