Closed olebole closed 11 months ago
While doing FERMI LAT data analysis using fermipy , I encountered similar error which is given below : WARNING: FITSFixedWarning: RADECSYS= 'FK5 ' the RADECSYS keyword is deprecated, use RADESYSa. [astropy.wcs.wcs] WARNING: FITSFixedWarning: 'datfix' made the change 'Set DATEREF to '2001-01-01T00:01:04.184' from MJDREF. Set MJD-OBS to 54682.655283 from DATE-OBS. Set MJD-END to 59852.000000 from DATE-END'. [astropy.wcs.wcs] Traceback (most recent call last): File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 5196, in setup self._bexp = Map.read(self.files['bexpmap'], hdu=hpxhduname) File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/gammapy/maps/core.py", line 240, in read return Map.from_hdulist( File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/gammapy/maps/core.py", line 308, in from_hdulist map_type = Map._get_map_type(hdulist, hdu) File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/gammapy/maps/core.py", line 339, in _get_map_type header = hdu_list[hdu_name].header File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/astropy/io/fits/hdu/hdulist.py", line 390, in getitem super().getitem, self._positive_index_of(key) File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/astropy/io/fits/hdu/hdulist.py", line 857, in _positive_index_of index = self.index_of(key) File "/home/dell/miniconda3/envs/fermipy/lib/python3.9/site-packages/astropy/io/fits/hdu/hdulist.py", line 839, in index_of raise KeyError(f"Extension {key!r} not found.") KeyError: "Extension 'HPXEXPOSURES' not found."
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dell/data backup ubuntu dell mint/Documents/low_z_BLLACs/1ES1959+650/xx.py", line 3, in
Same issue, still not fixed?
Sorry, the spectral-cube on conda-forge is still 0.6.3, it needs to be updated to 0.6.5
Do you maintain the conda-forge package?
@Firestar-Reimu indeed, see https://github.com/conda-forge/spectral-cube-feedstock/pull/16
Quick Reply, Thanks!
I can change /home/firestar/.miniconda/lib/python3.12/site-packages/spectral_cube/spectral_cube.py
manually for now.
Bash exited with code '1'.
I still do not know why it cannot be merged, what a pity.
https://anaconda.org/conda-forge/spectral-cube
now its good.
With Astropy 6.0, the CI tests of spectral-cube no longer pass; there are now many failures like
full test log
Reason is that angle_utilities was deprecated in Astropy 4.2 and removed in 6.0: