httomo_backends.scripts.json_pipelines_generator#

httomo_backends.scripts.json_pipelines_generator.get_yaml_path(yaml_filename: str) str[source]#

Get the full path to a YAML file in the pipelines_full directory.

Parameters:

yaml_filename – Name of the YAML file (e.g., “example.yaml”)

Returns:

Full path to the YAML file

httomo_backends.scripts.json_pipelines_generator.import_module_safely(module_name: str)[source]#

Safely import a module handling potential import errors

Parameters:

module_name – The name of the module to import

Returns:

The imported module or None if import fails

httomo_backends.scripts.json_pipelines_generator.inspect_method_parameters(module_name: str, method_name: str) Dict[str, Any][source]#

Inspect a method’s parameters from a given module

Parameters:
  • module_name – The full path to the module

  • method_name – Name of the method to inspect

Returns:

Dictionary of parameter names and their default values

httomo_backends.scripts.json_pipelines_generator.json_pipeline_generator(input_yaml: str) Dict[str, Any][source]#

Generate JSON pipeline from YAML directive

Parameters:

input_yaml – Path to input YAML directive file

Returns:

Dictionary with methods information if successful, or empty dictionary if error occurred

httomo_backends.scripts.json_pipelines_generator.load_priority_order() list[source]#

Load the pipeline priority order from the JSON configuration file in the pipelines_full directory.

Returns:

List of pipeline titles in priority order.

httomo_backends.scripts.json_pipelines_generator.process_all_yaml_files() Dict[str, Any][source]#

Process all YAML files in the pipelines_full directory in the order of priority.

Returns:

Dictionary where keys are YAML file names and values are the JSON outputs from the json_pipeline_generator function.