spino.config_io module

config_io: bridge between the GUI widgets and the pipeline configuration.

The pipeline is driven entirely by the module-level globals in pipeline/phase_config.py. This module:

  • reads those globals to obtain the default value of every parameter (so the GUI never hard-codes defaults that could drift from the pipeline);

  • describes each parameter’s group, kind and help text (consumed by the panels and the HelpButton popups);

  • serialises a flat {GLOBAL_NAME: value} settings dict to / from JSON.

The subprocess entry point runner.py loads that JSON, setattr``s every key onto ``phase_config and then runs the pipeline, so the set of keys here must match the global names in phase_config.py exactly.

spino.config_io.load_defaults()[source]

Return a deep copy of every exposed config global’s default value.

Return type:

Dict[str, Any]

spino.config_io.normalise(values)[source]

Return a JSON-serialisable copy (tuples -> lists).

Return type:

Dict[str, Any]

Parameters:

values (Dict[str, Any])

spino.config_io.write_settings(path, values)[source]
Return type:

None

Parameters:
spino.config_io.read_settings(path)[source]
Return type:

Dict[str, Any]

Parameters:

path (str)