[vistrails-dev] [GIT] VisTrails: Added support for typed commands in the calculator

git-noreply at vistrails.org git-noreply at vistrails.org
Wed Jan 18 11:51:09 EST 2012


The project "VisTrails":

The branch, uvcdat has been updated
       via  c547a904424bf9b62f048ce195be7bb25ec772f0 (commit)
      from  f3040ea360dca45f7bd8a99f2ad360e0e3f9ef2f (commit)


- Log -----------------------------------------------------------------
commit c547a904424bf9b62f048ce195be7bb25ec772f0
Author: Emanuele Santos <emanuelesantos at gmail.com>
Date:   Wed Jan 18 13:46:21 2012 -0300

Added support for typed commands in the calculator
- also added support for redefining a variable in the calculator

Bugfix:
Chaining unary operations was not working

--

vistrails/packages/uvcdat_cdms/pipeline_helper.py
class CDMSPipelineHelper:
build_variable_operation_pipeline()
added support for chaining of unary operations
build_plot_pipeline_action()
removed print

vistrails/gui/uvcdat/project_controller.py
class ProjectController:
calculator_command()
If a variable is being redefined and it is used in the command,
the previous one is renamed and kept around
new method process_typed_calculator_command()
variable_was_dropped()
resetting the workflow if it was already executed

vistrails/gui/uvcdat/mainwindow.py
In UVCDATMainWindow.stick_main_dict_into_defvar()
commented out vistrails part as it was generating duplicates

vistrails/gui/uvcdat/commandLineWidget.py
added new processed parameter to run_command() to differentiate when it was issued from typing return directly in the calculator
unprocessed commands are now submitted for provenance storage

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

Summary of changes:
 vistrails/gui/uvcdat/commandLineWidget.py         |   14 ++++-
 vistrails/gui/uvcdat/mainwindow.py                |   22 ++++----
 vistrails/gui/uvcdat/project_controller.py        |   56 +++++++++++++++++++-
 vistrails/packages/uvcdat_cdms/pipeline_helper.py |   12 +++--
 4 files changed, 83 insertions(+), 21 deletions(-)

-- 
VisTrails


More information about the vistrails-dev mailing list