tomwer.tasks.reconstruction.nabu.multipag.MultiPagTask#

class tomwer.tasks.reconstruction.nabu.multipag.MultiPagTask(*args, **kwargs)#

Task to launch several reconstruction of a single slice with delta / beta values.

Parameters:
  • inputs_names

    A dictionary containing the following keys:

  • output_names

    • data: TomwerScanBase

    • best_db: float

      best delta / beta value found according to the

    • scores: dict

      scores obtained for each delta / beta and for each existing method (std…)

    • nabu_params: dict

      reconstruction parameters with updated pahse/delta_beta value

  • optional_input_names

    • cluster_config: dict | None

      cluster configuration

      • cpu-per-task: int

      • n_tasks: int

      • n_jobs: int

      • memory: int

      • partition: str

      • n_gpus: int

      • job_name: str

      • walltime: str

      • python_venv: str

        expected to be used for debug only. Prefer using modules when possible.

      • modules: tuple[str]

        module to be loaded on script start up

      • sbatch_extra_params: dict[str,str]

    • dry_run: bool

      if true we will only create the nabu configuration file but not reconstruction will be launched

    • dump_roi: bool

      If true will dump ROI used to compute the score in the output file. Can be useful for debugging

    • pool_size: int

      pool size for post processing (score calculation)

DEFAULT_POOL_SIZE = 10#
static autofocus(scan)#
Return type:

float | None

cancel()#

stop current processing

property dry_run#
property dump_roi#
static dump_rois(scan, score_rois)#
get_output_dir(params, scan)#
static get_results_url(scan)#
static load_results_from_disk(scan)#
run()#

To be implemented by the derived classes

static save_results_to_disk(scan)#
property std_errs#
property std_outs#