Skip to content

Working on all vertebrae in parallel #1

@idhamari

Description

@idhamari

This should reduce the time to complete spine segmentation but it seems Slicer python doesn't support run in parallel.

I tried this:

   jobs=[0,1,2,3,4,5,6,7]       
   if isParallel ==1:
      results1 = []
      print '--pooling starts now--'
      pool = Pool( processes=8 )
      r1 = pool.map_async(self.runCroppingAll,jobs, callback=results1.append)
      r1.wait() # Wait for the results
      print '--pooling completed--'
      raw_input("Press Enter to continue...")

but either Slice rcrashes or hang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions