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

isoline pure numpy fails #928

Closed
doutriaux1 opened this issue Nov 25, 2014 · 1 comment
Closed

isoline pure numpy fails #928

doutriaux1 opened this issue Nov 25, 2014 · 1 comment
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

No description provided.

@doutriaux1 doutriaux1 self-assigned this Nov 25, 2014
@doutriaux1 doutriaux1 added this to the 2.1 milestone Nov 25, 2014
@doutriaux1
Copy link
Contributor Author

import vcs,numpy
import os,cdms2,sys
x=vcs.init()
gm = x.createisoline()
f=cdms2.open(os.path.join(sys.prefix,"sample_data","clt.nc"))
s=f("clt")
x.plot(s.filled(),gm)
x.png("isolines")
raw_input("Press enter")

gives:

Traceback (most recent call last):
  File "it_iso.py", line 9, in <module>
    x.plot(s.filled(),gm)
  File "/lgm/uvcdat/2014-11-24/lib/python2.7/site-packages/vcs/Canvas.py", line 2589, in plot
    a = self.__plot( arglist, keyargs )
  File "/lgm/uvcdat/2014-11-24/lib/python2.7/site-packages/vcs/Canvas.py", line 3649, in __plot
    returned_kargs = self.backend.plot(*arglist,**keyargs)
  File "/lgm/uvcdat/2014-11-24/lib/python2.7/site-packages/vcs/VTKPlots.py", line 395, in plot
    returned.update(self.plot2D(data1,data2,tpl,gm,vtk_backend_grid=vtk_backend_grid,vtk_backend_geo=vtk_backend_geo))
  File "/lgm/uvcdat/2014-11-24/lib/python2.7/site-packages/vcs/VTKPlots.py", line 1128, in plot2D
    returned.update(self.renderTemplate(tmpl,data1,gm,t,z))
  File "/lgm/uvcdat/2014-11-24/lib/python2.7/site-packages/vcs/VTKPlots.py", line 1220, in renderTemplate
    zunits.string=zaxis.units
AttributeError: 'TransientAxis' object has no attribute 'units'

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

No branches or pull requests

1 participant