mapplot.set_title example in documentation does not work #324
Labels
bug
a general bug or other breaking feature
marvin-tools
an issue related to the suite of Marvin Python Tools
vetting
indicates issues found during dedicated vetting sessions
Milestone
Running the last example on this page: http://sdss-marvin.readthedocs.io/en/stable/utils/plot-map.html?highlight=mapplot fails.
maps = Maps(plateifu='8485-1901')
ha = maps['emline_gflux_ha_6564']
title = mapplot.set_title(title=None, property_name=ha.property_name, channel=ha.channel)
fig, ax = mapplot.plot(dapmap=ha, mask=ha.mask, title=title)
AttributeError Traceback (most recent call last)
in ()
2 ha = maps['emline_gflux_ha_6564']
3
----> 4 title = mapplot.set_title(title=None, property_name=ha.property_name, channel=ha.channel)
5 fig, ax = mapplot.plot(dapmap=ha, mask=ha.mask, title=title)
//anaconda/envs/python3/lib/python3.6/site-packages/astropy/units/quantity.py in getattr(self, attr)
970 "'{0}' object has no '{1}' member".format(
971 self.class.name,
--> 972 attr))
973
974 def get_virtual_unit_attribute():
AttributeError: 'Map' object has no 'property_name' member
The text was updated successfully, but these errors were encountered: