GreenBankObservatory / dysh

https://dysh.readthedocs.io
Other
9 stars 3 forks source link

SDFITSLoad does not print the filepath #354

Open teuben opened 3 weeks ago

teuben commented 3 weeks ago

Describe the bug Unlike GBTFITSLoad(), the base class does not print the associated filepath

How to Reproduce

file1 = util.get_project_testdata() / 'TGBT21A_501_11/TGBT21A_501_11.raw.vegas.fits'
sdf1 = SDFITSLoad(file1)
print(sdf1)     # fails

sdf1 = GBTFITSLoad(file1)
print(sdf1)      # work

Environment

teuben commented 3 weeks ago

print(sdf1.filename) works for SDFITSLoad(), bujt not for GBTFITSLoad()

teuben commented 1 week ago

should check too what the 12m does, just to keep things symmetric