-
Notifications
You must be signed in to change notification settings - Fork 32
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
NotImplementedError: np.power is not implemented for Enhanced Map. #776
Comments
@Riddhi315 Please see the documentation on the Marvin Map, https://sdss-marvin.readthedocs.io/en/latest/tools/map.html#. Only some array arithmetic is supported. For more complex operation, you should access the array values directly.
|
@havok2063 I tried to do this as well. But I got this error:- |
@Riddhi315 the Marvin Map just wraps a numpy array, where the data are actually stored. When you call |
I tried to do this as well.But I got this error:-
Thanks,
Riddhi
…On Tue, 28 Jun, 2022, 04:24 Brian Cherinka, ***@***.***> wrote:
@Riddhi315 <https://github.com/Riddhi315> Please see the documentation on
the Marvin Map,
https://sdss-marvin.readthedocs.io/en/latest/tools/map.html#. Only some
array arithmetic is supported. For more complex operation, you should
access the array values directly.
maps = Maps(plateifu='12483-9102')
ha = maps.emline_gflux_ha_6564
hb = maps.emline_gflux_hb_4862
ratio = ha/hb
c = 10**(ratio.value)
—
Reply to this email directly, view it on GitHub
<#776 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARCGMWN3UK52ZGBMW2SM3HTVRIWIZANCNFSM5Z2CIEAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the bug
I am not able to apply np.power or ** on maps.
I want to do this:-
10**(ha/hb)
But I'm getting the NotImplementedError.
To Reproduce
Steps to reproduce the behavior:
from marvin.tools.maps import Maps
maps = Maps(plateifu='12483-9102')
ha = maps.emline_gflux_ha_6564
hb = maps.emline_gflux_hb_4862
c= 10**(ha/hb)
c.plot()
Screenshots
Desktop (please complete the following information):
OS: [Linux]
Browser [ chrome]
Marvin version:- 2.7.3(latest version)
The text was updated successfully, but these errors were encountered: