Skip to content

Commit

Permalink
models.py: allow model_singlepsr_noise to work with .tim TOA files th…
Browse files Browse the repository at this point in the history
…at do not contain 'pta' or 'f' flags
  • Loading branch information
mattpitkin committed Mar 6, 2024
1 parent d91baf2 commit f7ef3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise_extensions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def model_singlepsr_noise(psr, tm_var=False, tm_linear=False,
s += extra_sigs

# adding white-noise, and acting on psr objects
if ('NANOGrav' in psr.flags['pta'] or 'CHIME' in psr.flags['f']) and not is_wideband:
if ("NANOGrav" in psr.flags.get("pta", "") or "CHIME" in psr.flags.get("f", "")) and not is_wideband:
s2 = s + white_noise_block(vary=white_vary, inc_ecorr=True,
tnequad=tnequad, select=select)
model = s2(psr)
Expand Down

0 comments on commit f7ef3f0

Please sign in to comment.