td_run_all_local module

Look for all unfinished tomodirs in the present directory (and subdirectories), and run them subsequently by calling CRmod/CRTomo. The number of cores to use can be specified using a command line option.

Note that this script does not allow any kind of parallel calling of CRTomo, or remote execution of inversions.

This file is self-contained: it does not need any additional python scripts, and can thus be also used without installing crtomo-tools. The only requirement is that CRMod/CRTomo is available in the $PATH variable, i.e., that CRMod/CRTomo can be called.

td_run_all_local._get_mp_settings(options)[source]
td_run_all_local._run_crmod_in_tomodir(tomodir)[source]
td_run_all_local._run_crtomo_in_tomodir(tomodir)[source]
td_run_all_local.check_if_needs_inversion(tomodir)[source]

check of we need to run CRTomo in a given tomodir

Parameters:

tomodir (str) – Tomodir to check

Returns:

needs_inversion – True if not finished yet

Return type:

bool

td_run_all_local.check_if_needs_modeling(tomodir)[source]

check of we need to run CRMod in a given tomodir

td_run_all_local.find_unfinished_tomodirs(directory)[source]
td_run_all_local.handle_cmd_options()[source]
td_run_all_local.is_tomodir(subdirectories)[source]

provided with the subdirectories of a given directory, check if this is a tomodir

td_run_all_local.main()[source]
td_run_all_local.run_CRMod(tomodirs, options)[source]
td_run_all_local.run_CRTomo(tomodirs, options)[source]