niftynet.engine.handler_sampler module

This module implements a sampler threads controller.

class SamplerThreading(**_unused)[source]

Bases: object

This class handles iteration events to start/stop samplers’ threads.

start_sampler_threads(_sender, **_unused_msg)[source]

Get samplers from application and try to run sampler’s threads.

(deprecating)

Parameters:
  • sender
  • _unused_msg
Returns:

stop_sampler_threads(sender, **_unused_msg)[source]

Stop the sampler’s threads

Parameters:
  • sender – an instance of niftynet.application
  • _unused_msg
Returns: