Closed cdeil closed 5 years ago
Note: some code is now in gammapy.maps
and should be edited there.
@woodmd - There's also these bugs in gammapy.maps:
$ pyflakes gammapy/maps | grep 'undefined'
gammapy/maps/geom.py:32: undefined name 'center'
gammapy/maps/hpx.py:998: undefined name 'energies'
gammapy/maps/hpx.py:999: undefined name 'energies'
gammapy/maps/hpx.py:1000: undefined name 'energies'
gammapy/maps/hpx.py:1000: undefined name 'energies'
gammapy/maps/hpx.py:1109: undefined name 'mult_dhu'
gammapy/maps/hpxcube.py:50: undefined name 'HPX'
gammapy/maps/hpxcube.py:50: undefined name 'ebins'
gammapy/maps/hpxcube.py:56: undefined name 'ebins'
gammapy/maps/hpxcube.py:99: undefined name 'HpxToWcsMapping'
gammapy/maps/hpxcube.py:196: undefined name 'lat'
gammapy/maps/hpxcube.py:197: undefined name 'lon'
gammapy/maps/hpxcube.py:201: undefined name 'lon'
gammapy/maps/hpxcube.py:201: undefined name 'lat'
gammapy/maps/hpxcube.py:201: undefined name 'egy'
gammapy/maps/hpxcube.py:201: undefined name 'interp_log'
gammapy/maps/hpxcube.py:229: undefined name 'utils'
gammapy/maps/hpxcube.py:231: undefined name 'utils'
gammapy/maps/hpxcube.py:235: undefined name 'map_coordinates'
gammapy/maps/hpxcube.py:275: undefined name 'ew_hpx'
gammapy/maps/hpxmap.py:81: undefined name 'fits_utils'
gammapy/maps/hpxmap.py:222: undefined name 'ew_hpx'
gammapy/maps/hpxmap.py:286: undefined name 'i'
Can you fix them or should I make a reminder issue in the Gammapy tracker? (I probably won't have time this week to do it)
Yes I can take care of these. The HEALPix classes are far from complete so I will likely be continuing to make substantial changes in gammapy.maps
over the next month.
There's a few undefined names in Fermipy (i.e. completely broken code):
I'll make a PR for the first one (the trivial issue with print) now. @woodmd - Could you please look at the other ones and either remove that code if unused, or fix it?