sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
55 stars 32 forks source link

numpy.add not implemented on Enhanced Map #686

Closed cptkirkh closed 4 years ago

cptkirkh commented 4 years ago

Describe the bug When running the notebook Spatially-Resolved Mass-Metallicity Relation I get the following error.. NotImplementedError: numpy.add is not implemented for EnhancedMap.

To Reproduce Steps to reproduce the behavior: Run the notebook

Expected behavior A clear and concise description of what you expected to happen. Should be able to perform the jupyter notebook that was downloaded. Screenshots If applicable, add screenshots to help explain your problem. output of error.


NotImplementedError Traceback (most recent call last)

in ----> 1 oh = 8.90 + 0.57 * logn2 2 #oh=0.57 * logn2 C:\Users\cptki\Anaconda3\lib\site-packages\marvin\tools\quantities\map.py in __array_ufunc__(self, ufunc, method, *inputs, **kwargs) 161 def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): 162 --> 163 ivar = self._ivar_ufunc(ufunc, *inputs, **kwargs) 164 165 return EnhancedMap( C:\Users\cptki\Anaconda3\lib\site-packages\marvin\tools\quantities\map.py in _ivar_ufunc(self, ufunc, *inputs, **kwargs) 181 else: 182 raise NotImplementedError('np.{0} is not implemented for {1}.' --> 183 .format(ufunc.__name__, self.__class__.__name__)) 184 185 return ivar NotImplementedError: np.add is not implemented for EnhancedMap. **Desktop (please complete the following information):** - OS: [e.g. iOS] Windows 10 and MacOSx - Browser [e.g. chrome, safari] Chrome and Safari - Version [e.g. 22] **Additional context** Not sure if it is something I haven't implemented properly but thought I would post it here to see what I am missing.
cptkirkh commented 4 years ago

That fixed it. Thanks!!