Difference between revisions of "2009 Winter Project Week Python"

From NAMIC Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
===Key Investigators===
 
===Key Investigators===
* Luca Antiga (Medical Imaging Unit, Biomedical Engineering Department, Mario Negri Institute)
+
* Luca Antiga (Mario Negri Institute)
 
* Steve Piper (Isomics)
 
* Steve Piper (Isomics)
 +
* Demian Wasserman (INRIA)
  
 
<div style="margin: 20px;">
 
<div style="margin: 20px;">
Line 24: Line 25:
 
<h1>Approach, Plan</h1>
 
<h1>Approach, Plan</h1>
  
The Slicer Python interface now works well for both non-interactive and interactive modules. A few improvements are still needed, namely <br>
+
The Slicer Python interface now works well for both non-interactive and interactive modules.  
- calling VTK static methods - e.g. slicer.vtkMath.Norm(v)
+
 
- handling modified arguments - e.g. slicer.vtkMath::Normalize(v)
+
Interface has to be stabilized, and it is still lacking setting custom observers to vtkObject.
- defining methods with the exact number of arguments (now it's not constrained, so if it's wrong Tcl complains) - this will require a patch on the VTK Tcl wrappers.
+
 
- fix a memory leak associated with Python scripted modules.
+
Documentation has to be improved.
 +
 
 +
Packaging Scipy is currently a problem.
  
 
</div>
 
</div>
Line 36: Line 39:
 
<h1>Progress</h1>
 
<h1>Progress</h1>
  
TODO
+
The Python interface is being adopted by several groups, both for command-line and interactive modules. The Numpy interface works well.
 +
 
 +
A AddObserver method has been added to the wrapped vtkObject that accepts callbacks written in Python.
 +
 
 +
The Python breakout session has illustrated the ways Python can be used in Slicer and the ways users can implement their own modules. Slides will be on the wiki in a few days.
 +
 
 +
A --evalpython option has been added to the Slicer3 executable in order to run Python code in Slicer without starting the GUI (for batch processing)
 +
 
 +
Packaging problems have been
  
 
</div>
 
</div>

Latest revision as of 15:59, 9 January 2009

Home < 2009 Winter Project Week Python



Key Investigators

  • Luca Antiga (Mario Negri Institute)
  • Steve Piper (Isomics)
  • Demian Wasserman (INRIA)

Objective

To finalize the implementation of the Slicer Python interface and solve packaging problems linked to Scipy.

Approach, Plan

The Slicer Python interface now works well for both non-interactive and interactive modules.

Interface has to be stabilized, and it is still lacking setting custom observers to vtkObject.

Documentation has to be improved.

Packaging Scipy is currently a problem.

Progress

The Python interface is being adopted by several groups, both for command-line and interactive modules. The Numpy interface works well.

A AddObserver method has been added to the wrapped vtkObject that accepts callbacks written in Python.

The Python breakout session has illustrated the ways Python can be used in Slicer and the ways users can implement their own modules. Slides will be on the wiki in a few days.

A --evalpython option has been added to the Slicer3 executable in order to run Python code in Slicer without starting the GUI (for batch processing)

Packaging problems have been