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

Unable to access spectrum of spaxel as described in the plotting tutorial. #737

Open
OphelieLeste opened this issue Jul 18, 2021 · 0 comments

Comments

@OphelieLeste
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser [e.g. chrome, safari] (if the issue is related to Marvin Web) Chrome
  • Version of Marvin [e.g. 2.0.2]

Additional context
Add any other context about the problem here.

maps = Maps(plateifu='8940-6102')
maps.download()

spax = maps.getSpaxel(x=17, y=17, xyorig='lower', modelcube=True)
ax = spax.spectrum.plot()
ax.plot(spax.model.wavelength, spax.model.flux)
ax.legend(list(ax.get_lines()), ['observed', 'model'])

AttributeError Traceback (most recent call last)
in
1 spax = maps.getSpaxel(x=17, y=17, xyorig='lower', modelcube=True)
----> 2 ax = spax.spectrum.plot()
3 ax.plot(spax.model.wavelength, spax.model.flux)
4 ax.legend(list(ax.get_lines()), ['observed', 'model'])

~/anaconda3/lib/python3.7/site-packages/marvin/tools/spaxel.py in getattr(self, value)
166 return _getattr(tool_quantity_dict)[value]
167
--> 168 return super(Spaxel, self).getattribute(value)
169
170 def repr(self):

AttributeError: 'Spaxel' object has no attribute 'spectrum'

Unable to access spectrum as described in the plotting tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant