-
Notifications
You must be signed in to change notification settings - Fork 68
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
old code issues with panel plots #2148
Comments
My guess is that your file name was read from a json files or something and as a result is Unicode not just string type.
Are your variables file variables? If so you might want to make them transient variables (v = v() )
Also when you open your file try:
F=cdms2.open(str(filename)) it might fix the Unicode issue.
Sorry 2.4.1 is so old, it’s hard to support these sort of things.
I will try to reproduce your issue with 2.8
C.
From: angshuiisc <[email protected]>
Reply-To: UV-CDAT/uvcdat <[email protected]>
Date: Wednesday, January 4, 2017 at 9:52 PM
To: UV-CDAT/uvcdat <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [UV-CDAT/uvcdat] old code issues with panel plots (#2148)
I am trying to plot a 4 panel figure. I am using my old code which used to work fine is now `
showing` following error :
…________________________________
Successfully updated your environment to use UVCDAT
(changes are valid for this session/terminal only)
Version: 2.4.1
Location: /usr/local/uvcdat/2.4.1
Reset these changes by running: source /usr/local/uvcdat/2.4.1/bin/reset_runtime.sh
0 2
Traceback (most recent call last):
File "strat_cooling_4panel.py", line 289, in
plot_4(plots, grids,titles,outname,k)
File "strat_cooling_4panel.py", line 213, in plot_4
x.plot(plots[i],tmpl,meshobj,continents=0,yrev = 1)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 2404, in plot
a = self.__plot(arglist, keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 3726, in __plot
returned_kargs = self.backend.plot(*arglist, **keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 605, in plot
vtk_backend_grid, vtk_backend_geo, **kargs))
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/pipeline2d.py", line 303, in plot
self._plotInternal()
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/isofillpipeline.py", line 253, in _plotInternal
dataset_bounds=self._vtkDataSetBounds)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 760, in plotContinents
contData = vcs2vtk.prepContinents(self.canvas._continentspath())
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcs2vtk.py", line 555, in prepContinents
f = open(fnm)
TypeError: coercing to Unicode: need string or buffer, NoneType found
________________________________
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#2148>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACpw8cJPe3EE0cWEOyKzJ1ORFLQVJwEyks5rPIUDgaJpZM4LbXmE>.
|
Hi, I have attached the code (in .zip) Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to plot a 4 panel figure. I am using my old code which used to work fine is now `
showing` following error :
Successfully updated your environment to use UVCDAT
(changes are valid for this session/terminal only)
Version: 2.4.1
Location: /usr/local/uvcdat/2.4.1
Reset these changes by running: source /usr/local/uvcdat/2.4.1/bin/reset_runtime.sh
0 2
Traceback (most recent call last):
File "strat_cooling_4panel.py", line 289, in
plot_4(plots, grids,titles,outname,k)
File "strat_cooling_4panel.py", line 213, in plot_4
x.plot(plots[i],tmpl,meshobj,continents=0,yrev = 1)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 2404, in plot
a = self.__plot(arglist, keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/Canvas.py", line 3726, in __plot
returned_kargs = self.backend.plot(*arglist, **keyargs)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 605, in plot
vtk_backend_grid, vtk_backend_geo, **kargs))
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/pipeline2d.py", line 303, in plot
self._plotInternal()
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcsvtk/isofillpipeline.py", line 253, in _plotInternal
dataset_bounds=self._vtkDataSetBounds)
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/VTKPlots.py", line 760, in plotContinents
contData = vcs2vtk.prepContinents(self.canvas._continentspath())
File "/usr/local/uvcdat/2.4.1/lib/python2.7/site-packages/vcs/vcs2vtk.py", line 555, in prepContinents
f = open(fnm)
TypeError: coercing to Unicode: need string or buffer, NoneType found
The text was updated successfully, but these errors were encountered: