Skip to content

Issues with fermipy when using 16YFL catalog #671

@marcesiles

Description

@marcesiles

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:

False

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions