nabu.pipeline.config_validators module

nabu.pipeline.config_validators.raise_error(section, key, msg='')[source]
nabu.pipeline.config_validators.validator(func)[source]

Common decorator for all validator functions. It modifies the signature of the decorated functions !

nabu.pipeline.config_validators.convert_to_int(val)[source]
nabu.pipeline.config_validators.convert_to_float(val)[source]
nabu.pipeline.config_validators.convert_to_bool(val)[source]
nabu.pipeline.config_validators.str2bool(val)[source]

This is an interface to convert_to_bool and it is meant to work as a class: in argparse interface the type argument can be set to float, int .. in general to a class. The argument value is then created, at parsing time, by typecasting the input string to the given class. A possibly occuring exception then trigger, in case, the display explanation provided by the argparse library. All what this methods does is simply trying to convert an argument into a bool, and return it, or generate an exception if there is a problem

nabu.pipeline.config_validators.convert_to_bool_noerr(val)[source]
nabu.pipeline.config_validators.name_range_checker(name, valid_names, descr, replacements=None)[source]
nabu.pipeline.config_validators.optional_string_validator(section, key, value)[source]
nabu.pipeline.config_validators.file_name_validator(section, key, value)[source]
nabu.pipeline.config_validators.file_location_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_file_location_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_values_file_validator(section, key, value)[source]
nabu.pipeline.config_validators.directory_location_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_directory_location_validator(section, key, value)[source]
nabu.pipeline.config_validators.dataset_location_validator(section, key, value)[source]
nabu.pipeline.config_validators.directory_writeable_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_output_directory_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_output_file_path_validator(section, key, value)[source]
nabu.pipeline.config_validators.integer_validator(section, key, value)[source]
nabu.pipeline.config_validators.nonnegative_integer_validator(section, key, value)[source]
nabu.pipeline.config_validators.positive_integer_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_positive_integer_validator(section, key, value)[source]
nabu.pipeline.config_validators.nonzero_integer_validator(section, key, value)[source]
nabu.pipeline.config_validators.binning_validator(section, key, value)[source]
nabu.pipeline.config_validators.projections_subsampling_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_file_name_validator(section, key, value)[source]
nabu.pipeline.config_validators.boolean_validator(section, key, value)[source]
nabu.pipeline.config_validators.boolean_or_auto_validator(section, key, value)[source]
nabu.pipeline.config_validators.float_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_float_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_nonzero_float_validator(section, key, value)[source]
nabu.pipeline.config_validators.optional_tuple_of_floats_validator(section, key, value)[source]
nabu.pipeline.config_validators.cor_validator(section, key, value)[source]
nabu.pipeline.config_validators.tilt_validator(section, key, value)[source]
nabu.pipeline.config_validators.slice_num_validator(section, key, value)[source]
nabu.pipeline.config_validators.generic_options_validator(section, key, value)[source]
nabu.pipeline.config_validators.cor_options_validator(section, key, value)
nabu.pipeline.config_validators.cor_slice_validator(section, key, value)[source]
nabu.pipeline.config_validators.flatfield_enabled_validator(section, key, value)[source]
nabu.pipeline.config_validators.phase_method_validator(section, key, value)[source]
nabu.pipeline.config_validators.detector_distortion_correction_validator(section, key, value)[source]
nabu.pipeline.config_validators.unsharp_method_validator(section, key, value)[source]
nabu.pipeline.config_validators.padding_mode_validator(section, key, value)[source]
nabu.pipeline.config_validators.reconstruction_method_validator(section, key, value)[source]
nabu.pipeline.config_validators.fbp_filter_name_validator(section, key, value)[source]
nabu.pipeline.config_validators.reconstruction_implementation_validator(section, key, value)[source]
nabu.pipeline.config_validators.optimization_algorithm_name_validator(section, key, value)[source]
nabu.pipeline.config_validators.output_file_format_validator(section, key, value)[source]
nabu.pipeline.config_validators.distribution_method_validator(section, key, value)[source]
nabu.pipeline.config_validators.sino_normalization_validator(section, key, value)[source]
nabu.pipeline.config_validators.sino_deringer_methods(section, key, value)[source]
nabu.pipeline.config_validators.list_of_int_validator(section, key, value)[source]
nabu.pipeline.config_validators.list_of_shift_validator(section, key, value)[source]
nabu.pipeline.config_validators.list_of_tomoscan_identifier(section, key, value)[source]
nabu.pipeline.config_validators.resources_validator(section, key, value)[source]
nabu.pipeline.config_validators.walltime_validator(section, key, value)[source]
nabu.pipeline.config_validators.nonempty_string_validator(section, key, value)[source]
nabu.pipeline.config_validators.logging_validator(section, key, value)[source]
nabu.pipeline.config_validators.exclude_projections_validator(section, key, value)[source]
nabu.pipeline.config_validators.no_validator(section, key, value)[source]