Skip to content

Marvin Deprecation Error.  #6

@karenlmasters

Description

@karenlmasters

I get the following Marvin Deprecation Error running the trial Notebook which calls this code. Not quite sure what changed with Marvin that breaks this.... can you help me figure it out?

MarvinDeprecationError                    Traceback (most recent call last)
<ipython-input-5-50dda1424bbf> in <module>
      4 data.get_bpt()
      5 data.make_all_spaxel_masks()
----> 6 data.get_mean_spectra(inv=True)

/raid5/homes/klmasters/Galaxy Zoo 3D/gz3d_fits.py in get_mean_spectra(self, inv)
    226         if self.cube != 'no_data':
    227             self.make_all_spaxel_masks()
--> 228             self.mean_bar = self._stack_spectra('bar_mask_spaxel')
    229             self.mean_spiral = self._stack_spectra('spiral_mask_spaxel')
    230             self.mean_center = self._stack_spectra('center_mask_spaxel')

/gz3d_fits.py in _stack_spectra(self, mask_name, inv)
    212         if len(mdx[0] > 0):
    213             weights = mask[mdx]
--> 214             spaxels = self.cube[mdx]
    215             spectra = np.array([s.spectrum for s in spaxels])
    216             if len(spectra) == 1:

marvin_subclass.py in __getitem__(self, xy)
    111     def __getitem__(self, xy):
    112         """Returns the spaxel for ``(x, y)`` without propserties"""
--> 113         spaxel = self.getSpaxel(x=xy[0], y=xy[1], properties=False, xyorig='lower')
    114         if isinstance(spaxel, list):
    115             for s in spaxel:

/packages/python3.6.8/lib/python3.6/site-packages/marvin/tools/cube.py in getSpaxel(self, x, y, ra, dec, maps, modelcube, **kwargs)
    576                 raise marvin.core.exceptions.MarvinDeprecationError(
    577                     'the {0} parameter has been deprecated. '
--> 578                     'Use maps or modelcube.'.format(old_param))
    579 
    580         return marvin.utils.general.general.getSpaxel(x=x, y=y, ra=ra, dec=dec,

MarvinDeprecationError: the properties parameter has been deprecated. Use maps or modelcube.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions