2008 Summer Project Week:PythonInSlicer

From NAMIC Wiki
Jump to: navigation, search
Home < 2008 Summer Project Week:PythonInSlicer



Key Investigators

  • Luca Antiga
  • Dan Blezek
  • Mike Halle
  • Steve Pieper
  • Demian Wasserman

Objective

To finalize the use of Python within Slicer for command-line modules, scripted modules and meta-modules (or module chaining). The main rework is needed for scripted modules.

We will discuss what would be needed to create a Scripted Module tutorial using python.

Approach, Plan

The plan for the project week is to get the status of Python within Slicer ready for release. This will involve some general code review and some rework on Python Scripted Module infrastructure.

Progress

During the January 2008 project week, within Python Support in Slicer 3, preliminary Python support for Numpy/Scipy, command line modules (executed in the main thread), calling of all registered modules from Python and scripted modules have been added.

In June 2008 significant progress was made to clean up the implementation to make the python code behave identically to python-wrapped VTK code and minimize the any special cases that python developers need to keep in mind when writing slicer code. Some cleanup work is required for shutdown to avoid leaks/crashes.

Next step is to enable python by default in the slicer3 trunk builds and then develop a tutorial for writing a python-based scripted module at future courses.


References