Closed mef51 closed 11 months ago
Please correct me if I am wrong but I think the PSR
mode is for a fold-mode observation of a pulsar, which is not the same as the SEARCH
mode data that is streamed multi-channel data.
You're probably right. The underlying data is an FRB waterfall but even when I bypass the is_PSRTFITS
function it still doesn't load with your
(some fields that your
uses are missing) so I'm not sure. It could be a quirk of how they saved their data.
Describe the bug I am wanting to open a PSRFITS fits from Gajjar+2018 (Burst 11A of http://seti.berkeley.edu/frb121102/technical.html) with
your
but I get aFile 'data/gajjar2018/11A_16sec.calib.4p.fits' does not appear to be PSRFITS!
error, even though the file opens fine in other packages such aspypulse
. I would just use pypulse but it currently is broken on newer machines due to dependency issues.To Reproduce Steps to reproduce the behavior:
your
detects this as a fits file.The output is
ValueError: File '/11A_16sec.calib.4p.fits' does not appear to be PSRFITS!
Expected behavior Load the file.
Additional context The issue happens because the
is_PSRFITS
function loads the file then checks ifFor the file in question the first check is true but
hdulist["PRIMARY"].header["OBS_MODE"] == "PSR"
.I think the "OBS_MODE" check is overkill and my feeling is it can be removed but I'm not familiar enough to be sure.
Versions (please provide the versions of the the following packages):