Hello, I am trying to use the 16YFL catalog (gll_psc_v41.fit) with:
- fermipy 1.4.1
- Fermitools / ScienceTools 2.5.1
- Python 3.11
During GTAnalysis initialization, fermipy crashes with:
KeyError: 'Spatial_Filename'
The traceback points to:
table['Spatial_Filename'][table['Spatial_Filename'] == 'None'] = ''
inside fermipy/catalog.py.
I checked the catalog directly with Astropy:
from astropy.table import Table
t = Table.read('gll_psc_v41.fit')
print('Spatial_Filename' in t.colnames)
and it returns:
So it seems the FL16Y schema does not contain the Spatial_Filename column expected by fermipy.
Has anyone else encountered this with FL16Y? Is there an officially recommended workaround about this?
At the moment I can manually patch the FITS table by adding an empty Spatial_Filename column, but I am not sure if that is the issue actually, and I consider it has something to do with fermipy.
Thanks.
Hello, I am trying to use the 16YFL catalog (
gll_psc_v41.fit) with:During
GTAnalysisinitialization, fermipy crashes with:The traceback points to:
inside
fermipy/catalog.py.I checked the catalog directly with Astropy:
and it returns:
FalseSo it seems the FL16Y schema does not contain the
Spatial_Filenamecolumn expected by fermipy.Has anyone else encountered this with FL16Y? Is there an officially recommended workaround about this?
At the moment I can manually patch the FITS table by adding an empty
Spatial_Filenamecolumn, but I am not sure if that is the issue actually, and I consider it has something to do with fermipy.Thanks.