Skip to content

Instantly share code, notes, and snippets.

@cdeil
Last active June 30, 2017 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/99b672203c9aa82bd7d9e30167be8842 to your computer and use it in GitHub Desktop.
Save cdeil/99b672203c9aa82bd7d9e30167be8842 to your computer and use it in GitHub Desktop.
from gammapy.maps import MapBase
from astropy.coordinates import SkyCoord
position = SkyCoord(0, 0, frame='galactic', unit='deg')
MapBase.create(binsz=0.1, map_type='wcs')
MapBase.create_image()
MapBase.create_cube()
## -- End pasted text --
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-5bfe18e67089> in <module>()
3 position = SkyCoord(0, 0, frame='galactic', unit='deg')
4
----> 5 MapBase.create(binsz=0.1, map_type='wcs')
6
7 MapBase.create_image()
~/code/gammapy/gammapy/maps/base.py in create(cls, **kwargs)
62
63 from .hpxmap import HpxMap
---> 64 from .wcsmap import HpxMap
65
66 map_type = kwargs.setdefault('map_type', 'wcs')
ModuleNotFoundError: No module named 'gammapy.maps.wcsmap'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment