2008 Winter Project Week Python

From NAMIC Wiki
Jump to: navigation, search
Home < 2008 Winter Project Week Python

General Status of Python support in Slicer

  • numpy/scipy integration
  • matplotlib status
  • command line modules in Python
    • CLM Python module discovery (where to put your nifty Python CLM)
  • scripted modules in Python
    • Scripted module discovery (where to put your nifty Python module)
  • Python Meta-Modules

Slicer Python Primer

Command line module walkthrough

  • Required elements
    • XML
    • Execute
  • Processing MRML nodes
  • Placing results back in MRML
  • Gotchas
    • Not threaded, don't lock up Slicer for too long

Python Scripted Modules

  • Required elements
    • XML
    • Function structure
    • Module that looks like a class

Python Meta-Modules

  • Command Line Modules as plugins
  • Discovery process
  • Calling conventions
  • Example

Future Directions

  • Wizard: Multi-stage modules (union of Scripted Modules and Meta-Modules)
  • Matplotlib: interactive and integrated plotting
  • Matlab-like access to Slicer MRML nodes