Skip to content

Portrait plot issues #146

Closed
Closed
@durack1

Description

@durack1

It seems something in vcs=2.8 has changed so that the following error occurs:

>>> cdat_info.version()
['', 'v2.8']
(PMP) bash-4.1$ python portrait-3obs.py
/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/numpy/ma/core.py:3337: MaskedArrayFutureWarning: setting an item on a masked array which has a shared mask will not copy the mask and also change the original mask array in the future.
Check the NumPy 1.11 release notes for more information.
  self.__setitem__(slice(i, j), value)
Traceback (most recent call last):
  File "portrait-3obs.py", line 131, in <module>
    P.plot(out1_rel,x=x,multiple=1.3,bg=1)
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/pcmdi_metrics/graphics/portraits.py", line 983, in plot
    x.plot(MV2.ravel(data), M, template, meshfill, bg=bg)
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/vcs/Canvas.py", line 2564, in plot
    a = self.__plot(arglist, keyargs)
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/vcs/Canvas.py", line 3893, in __plot
    returned_kargs = self.backend.plot(*arglist, **keyargs)
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/vcs/VTKPlots.py", line 608, in plot
    vtk_backend_grid, vtk_backend_geo, **kargs))
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/vcs/vcsvtk/pipeline2d.py", line 285, in plot
    self._min = self._data1.min()
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/numpy/ma/core.py", line 5472, in min
    axis=axis, out=out, **kwargs).view(type(self))
  File "/home/p1d/anaconda2/envs/PMP/lib/python2.7/site-packages/numpy/core/_methods.py", line 29, in _amin
    return umr_minimum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation minimum which has no identity

@doutriaux1 @danlipsa is this related to #117 and #119 do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions