-
Notifications
You must be signed in to change notification settings - Fork 13
vcs cannot go back into interact mode #86
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
Comments
@doutriaux1 I am hitting a similar problem with |
@durack1 if you have x.interact() you then need to hit |
@doutriaux1 yep, hitting 'Q' returns the focus back to the console, but the canvas becomes unusable.. It responds to an |
let's take a look next week |
@doutriaux1 this was the issue we were discussing, however, it's |
@doutriaux1 @danlipsa @aashish24 just fyi, this bug is preventing me from using |
@durack1 Can you provide us the steps to reproduce the problem? I tried what Sam wrote but I cannot reproduce the problem. |
@danlipsa I haven't checked this in a v2.10 ipython console (importantly it has to be a non- import vcs
import numpy
mat = np.zeros([5,5])
x = vcs.init()
y = vcs.init()
x.meshfill(mat)
y.meshfill(mat)
x.clear()
y.clear()
x.close() ; # This leads to a zombie window that doesn't die until the ipython session is killed
y.close() ; # Same here |
@durack1 @doutriaux1 With 2.10 I get >>> x.meshfill(mat) Traceback (most recent call last): File "", line 1, in File "/Users/danlipsa/anaconda/envs/2.10/lib/python2.7/site-packages/vcs/Canvas.py", line 1385, in meshfill arglist = _determine_arg_list('meshfill', args) File "/Users/danlipsa/anaconda/envs/2.10/lib/python2.7/site-packages/vcs/Canvas.py", line 264, in _determine_arg_list raise vcsError("Meshfill requires 2 slab if first slab doesn't have a " vcs.error.vcsError: Meshfill requires 2 slab if first slab doesn't have a Rectilinear, Curvilinear or Generic Grid type |
@danlipsa try this: (uvcdat2100) duro@ocean:[160427_CMIP6_Forcing]:[5711]> ipython
Python 2.7.13 | packaged by conda-forge | (default, May 2 2017, 12:48:11)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import cdms2,vcs
In [2]: f = '/export/durack1/170123_CDAT_scripts/siconc_input4MIPs_SSTsAndSeaIce_CMIP_PCMDI-AMIP-1-1-1_gn_187001.nc'
In [3]: fH = cdms2.open(f)
In [4]: var = fH('siconc')
In [5]: x = vcs.init()
In [6]: y = vcs.init()
In [7]: x.meshfill(var)
Out[7]: <vcs.displayplot.Dp at 0x7f2a8d2a2050>
In [8]: y.meshfill(var)
Out[8]: <vcs.displayplot.Dp at 0x7f2ace8ce6e0>
In [9]: x.clear()
In [10]: y.clear()
In [11]: x.close() ; # This leads to a zombie window that doesn't die until the ipython session is killed
In [12]: y.close() ; #Same here
In [13]: import cdat_info
In [14]: cdat_info.version()
Out[14]: ['', '2.8.10'] And the file: |
@doutriaux1 is |
@durack1 nice catch I'll patch this, right away. |
duplicate of CDAT/dv3d#4 |
At that point resizing the windows hangs the system comletely
Migrated from: CDAT/cdat#1295
The text was updated successfully, but these errors were encountered: