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

dv3d list broken #1285

Closed
doutriaux1 opened this Issue May 6, 2015 · 9 comments

Comments

Projects
None yet
2 participants
@doutriaux1
Member

doutriaux1 commented May 6, 2015

In [1]: dsc=x.create3d_scalar()

In [2]: dsc.list()
 ---------- DV3D (Gfdv3d) member (attribute) listings ---------
name = __3d_scalar_642267851670046
axes = xyz
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-b9c9df306f2c> in <module>()
----> 1 dsc.list()

/lgm/uvcdat/2.2.0/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vcs/dv3d.pyc in list(self)
    185         print 'axes =',self.axes
    186         for pname in self.parameter_names:
--> 187             print ' = '.join( [ pname, self.getParameter( pname ) ] )
    188 
    189 class Gf3Dvector(Gfdv3d):

TypeError: sequence item 1: expected string, NoneType found

@doutriaux1 doutriaux1 added this to the 2.2 milestone May 6, 2015

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 6, 2015

try:

        for pname in self.parameter_names:
            pval = self.getParameter( pname )
            print pname,'=',repr(pval)
@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 6, 2015

@ThomasMaxwell lots of default are initialized as None, you might to initialize with actual values?

ToggleVolumePlot = None
BasemapOpacity = None
Camera = '{}'
PointSize = None
Configure = None
ScaleColormap = None
ChooseColormap = None
ToggleSurfacePlot = None
SliceThickness = None
ScaleOpacity = None
Colorbar = None
ToggleClipping = None
Animation = None
ZSlider = None
IsosurfaceValue = None
YSlider = None
ScaleTransferFunction = None
VerticalScaling = None
XSlider = None
ToggleSphericalProj = None
@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 6, 2015

also should the default for axes really be "xyz" ? Could we set it to (-3 -2 -1) or None which would mean that ? So that sending ANY 3D array would work (just no basemap)

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented May 6, 2015

These are given default values elsewhere, e.g. ‘interactionButtons.addSliderButton’.

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Wednesday, May 6, 2015 at 12:30 AM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: "Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP]" <thomas.maxwell@nasa.govmailto:thomas.maxwell@nasa.gov>
Subject: Re: [uvcdat] dv3d list broken (#1285)

@ThomasMaxwellhttps://github.com/ThomasMaxwell lots of default are initialized as None, you might to initialize with actual values?

ToggleVolumePlot = None
BasemapOpacity = None
Camera = '{}'
PointSize = None
Configure = None
ScaleColormap = None
ChooseColormap = None
ToggleSurfacePlot = None
SliceThickness = None
ScaleOpacity = None
Colorbar = None
ToggleClipping = None
Animation = None
ZSlider = None
IsosurfaceValue = None
YSlider = None
ScaleTransferFunction = None
VerticalScaling = None
XSlider = None
ToggleSphericalProj = None


Reply to this email directly or view it on GitHubhttps://github.com//issues/1285#issuecomment-99317962.

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented May 6, 2015

Dv3d has never been designed to handle raw 3D arrays. It expects datasets that are at least close to COARDS or CF compliant.

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Wednesday, May 6, 2015 at 12:32 AM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: "Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP]" <thomas.maxwell@nasa.govmailto:thomas.maxwell@nasa.gov>
Subject: Re: [uvcdat] dv3d list broken (#1285)

also should the default for axes really be "xyz" ? Could we set it to (-3 -2 -1) or None which would mean that ? So that sending ANY 3D array would work (just no basemap)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1285#issuecomment-99318047.

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented May 6, 2015

Fixed in branch vcs3D_fix_dv3d_list.

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented May 6, 2015

Can whoever is in charge of the diagnostics gui please catch the following UVCDAT gui startup error?:

Location: /usr/local/uvcdat-test/build/install
['Adelon', 'Arabic', 'AvantGarde', 'Chinese', 'Clarendon', 'Courier',
'Greek', 'Hebrew', 'Helvetica', 'Maths1', 'Maths2', 'Maths3', 'Maths4',
'Russian', 'Times', 'default']
Uncaught exception on initialization: KeyError: 'path'
Traceback (most recent call last):
File "/usr/local/uvcdat-test/vistrails/vistrails/uvcdat.py", line 89,
in
v = gui.application.start_application()
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 703, in start_application
x = VistrailsApplication.init(optionsDict)
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 160, in init
self.createWindows()
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 554, in createWindows
self.uvcdatWindow = UVCDATMainWindow()
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/mainwindow.py",
line 74, in init
self.createDockWindows()
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/mainwindow.py",
line 166, in createDockWindows
self.diagnosticsWidget = DiagnosticsDockWidget(self)
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/diagnosticsDockWidget.py",
line 56, in init
self.opts._opts['path'].append(str(self.DS1PathLabel.text()))
KeyError: 'path'
Uncaught exception on initialization: KeyError: 'path'
Traceback (most recent call last):
File "/usr/local/uvcdat-test/vistrails/vistrails/uvcdat.py", line 89,
in
v = gui.application.start_application()
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 703, in start_application
x = VistrailsApplication.init(optionsDict)
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 160, in init
self.createWindows()
File "/usr/local/uvcdat-test/vistrails/vistrails/gui/application.py",
line 554, in createWindows
self.uvcdatWindow = UVCDATMainWindow()
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/mainwindow.py",
line 74, in init
self.createDockWindows()
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/mainwindow.py",
line 166, in createDockWindows
self.diagnosticsWidget = DiagnosticsDockWidget(self)
File
"/usr/local/uvcdat-test/vistrails/vistrails/gui/uvcdat/diagnosticsDockWidget.py",
line 56, in init
self.opts._opts['path'].append(str(self.DS1PathLabel.text()))
KeyError: 'path'

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented May 6, 2015

One way to support the input of raw 3D arrays into vcs3D would be to provide some scripts to easily wrap the arrays as cdms TransientVariables, which vcs3D can ingest.

From: , "Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP]" <thomas.maxwell@nasa.govmailto:thomas.maxwell@nasa.gov>
Date: Wednesday, May 6, 2015 at 12:06 PM
To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Subject: Re: [uvcdat] dv3d list broken (#1285)

Dv3d has never been designed to handle raw 3D arrays. It expects datasets that are at least close to COARDS or CF compliant.

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Wednesday, May 6, 2015 at 12:32 AM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: "Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP]" <thomas.maxwell@nasa.govmailto:thomas.maxwell@nasa.gov>
Subject: Re: [uvcdat] dv3d list broken (#1285)

also should the default for axes really be "xyz" ? Could we set it to (-3 -2 -1) or None which would mean that ? So that sending ANY 3D array would work (just no basemap)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1285#issuecomment-99318047.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 6, 2015

so you mean if I pass a 3D MV2 with axis axis_0 axis_1 and axis_2 it is not supposed to work right?
I'll try it just for fun

@doutriaux1 doutriaux1 closed this May 6, 2015

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