You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I met with a few folks in Europe to try to get our timing (pint_pal) and noise modeling working with simulated libstempo data. However, the simulated tim files lacked the pta and f flags needed in models.py and caused a crash:
if ('NANOGrav'inpsr.flags['pta'] or'CHIME'inpsr.flags['f']) andnotis_wideband:
They were able to fake it out by giving a fake pta flag but also needing a fake f flag. I was going to go in to change these to check for the existence of these flags first in the if statement but checks for 'NANOGrav' in psr.flags['pta'] are throughout the code.
While perhaps less safe, I would recommend writing a helper function somewhere along the lines of
def check_flag(psr, key, value):
return (key in psr.flags and value in psr.flags[key])
and then replacing the if statements appropriately throughout.
The text was updated successfully, but these errors were encountered:
I met with a few folks in Europe to try to get our timing (
pint_pal
) and noise modeling working with simulatedlibstempo
data. However, the simulated tim files lacked thepta
andf
flags needed inmodels.py
and caused a crash:enterprise_extensions/enterprise_extensions/models.py
Line 320 in 541dd1f
They were able to fake it out by giving a fake
pta
flag but also needing a fakef
flag. I was going to go in to change these to check for the existence of these flags first in the if statement but checks for'NANOGrav' in psr.flags['pta']
are throughout the code.While perhaps less safe, I would recommend writing a helper function somewhere along the lines of
and then replacing the if statements appropriately throughout.
The text was updated successfully, but these errors were encountered: