[vistrails-dev] [GIT] VisTrails: Bugfix: Fixed "define as" button on "Load Variable" panel.

git-noreply at vistrails.org git-noreply at vistrails.org
Wed Jan 11 12:36:14 EST 2012


The project "VisTrails":

The branch, uvcdat has been updated
       via  884d256ed3107d7bbf54716f59d599622fecefc8 (commit)
      from  b39fb212eb9282eee7c540f21fd2233a83019b52 (commit)


- Log -----------------------------------------------------------------
commit 884d256ed3107d7bbf54716f59d599622fecefc8
Author: Emanuele Santos <emanuelesantos at gmail.com>
Date:   Wed Jan 11 14:35:41 2012 -0300

Bugfix: Fixed "define as" button on "Load Variable" panel.
Added support for naming variables differently from the variable name in the file

vistrails/packages/uvcdat_cdms/init.py
In class CDMSVariable:
added new "varNameInFile" input port
__init__()
added varNameInFile initialization and to the input parameters

to_module()
creating varNameInFile function if available
to_python()
using self.varNameInFile to load the variable if it is not None
to_python_script()
using self.varNameInFile to load the variable if it is not None
from_module()
loading varNameInFile from module
compute()
loading varNameInFile from port

vistrails/gui/uvcdat/variable.py
In class VariableProperties:
new method defineAsVarClicked
__init__()
renamed cancel button to close
connectSignals()
connecting define as button click
getUpdatedVar()
sending name in file to variable constructor

-----------------------------------------------------------------------

Summary of changes:
 vistrails/gui/uvcdat/variable.py       |   17 +++++++++++++++--
 vistrails/packages/uvcdat_cdms/init.py |   22 ++++++++++++++++++----
 2 files changed, 33 insertions(+), 6 deletions(-)

-- 
VisTrails


More information about the vistrails-dev mailing list