Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geMap fails for properties/channels without ivar #103

Closed
albireox opened this issue Nov 19, 2016 · 1 comment
Closed

geMap fails for properties/channels without ivar #103

albireox opened this issue Nov 19, 2016 · 1 comment
Assignees
Labels
bug a general bug or other breaking feature
Milestone

Comments

@albireox
Copy link
Member

In [1]: from marvin.tools.maps import Maps
mINFO: No release version set. Setting default to MPL-5
m
In [2]: mm = Maps(plateifu='8485-1901', mode='remote')

In [6]: ell_r = mm.getMap('spx_ellcoo', channel='elliptical_radius')
----------------------------------------------------------------------
KeyError                             Traceback (most recent call last)
<ipython-input-6-bdbea7a135f5> in <module>()
----> 1 ell_r = mm.getMap('spx_ellcoo', channel='elliptical_radius')

/Users/albireo/Documents/Repo/manga/marvin/python/marvin/tools/maps.pyc in getMap(self, property_name, channel)
    510         """
    511
--> 512         return marvin.tools.map.Map(self, property_name, channel=channel)
    513
    514     def getMapRatio(self, property_name, channel_1, channel_2):

/Users/albireo/Documents/Repo/manga/marvin/python/marvin/tools/map.pyc in __init__(self, maps, property_name, channel)
     94             self._load_map_from_db()
     95         elif maps.data_origin == 'api':
---> 96             self._load_map_from_api()
     97
     98     def __repr__(self):

/Users/albireo/Documents/Repo/manga/marvin/python/marvin/tools/map.pyc in _load_map_from_api(self)
    201
    202         self.value = numpy.array(data['value'])
--> 203         self.ivar = numpy.array(data['ivar'])
    204         self.mask = numpy.array(data['mask'])
    205         self.unit = data['unit']

KeyError: 'ivar'
@albireox albireox added the bug a general bug or other breaking feature label Nov 19, 2016
@albireox albireox added this to the Post-Beta milestone Nov 19, 2016
@albireox albireox self-assigned this Nov 19, 2016
@albireox
Copy link
Member Author

This is fixed as of d01bec1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a general bug or other breaking feature
Projects
None yet
Development

No branches or pull requests

1 participant