added pass through s11
This commit is contained in:
@@ -65,13 +65,47 @@ def run_config_from_dict(payload: dict[str, Any]) -> RunConfigModel:
|
||||
run_payload.get("processing_live_config_path", model.runtime.processing_live_config_path)
|
||||
)
|
||||
|
||||
model.preprocess.calibration_set = str(preprocess_payload.get("calibration_set", model.preprocess.calibration_set))
|
||||
model.preprocess.reference_set = str(preprocess_payload.get("reference_set", model.preprocess.reference_set))
|
||||
model.preprocess.calibration_bundle_path = str(
|
||||
preprocess_payload.get("calibration_bundle_path", model.preprocess.calibration_bundle_path)
|
||||
model.preprocess.s21_calibration_set = str(
|
||||
preprocess_payload.get("s21_calibration_set", model.preprocess.s21_calibration_set)
|
||||
)
|
||||
model.preprocess.reference_bundle_path = str(
|
||||
preprocess_payload.get("reference_bundle_path", model.preprocess.reference_bundle_path)
|
||||
model.preprocess.s21_reference_set = str(
|
||||
preprocess_payload.get("s21_reference_set", model.preprocess.s21_reference_set)
|
||||
)
|
||||
model.preprocess.s21_calibration_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s21_calibration_bundle_path",
|
||||
model.preprocess.s21_calibration_bundle_path,
|
||||
)
|
||||
)
|
||||
model.preprocess.s21_reference_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s21_reference_bundle_path",
|
||||
model.preprocess.s21_reference_bundle_path,
|
||||
)
|
||||
)
|
||||
model.preprocess.s11_open_calibration_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s11_open_calibration_bundle_path",
|
||||
model.preprocess.s11_open_calibration_bundle_path,
|
||||
)
|
||||
)
|
||||
model.preprocess.s11_short_calibration_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s11_short_calibration_bundle_path",
|
||||
model.preprocess.s11_short_calibration_bundle_path,
|
||||
)
|
||||
)
|
||||
model.preprocess.s11_load_calibration_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s11_load_calibration_bundle_path",
|
||||
model.preprocess.s11_load_calibration_bundle_path,
|
||||
)
|
||||
)
|
||||
model.preprocess.s11_reference_bundle_path = str(
|
||||
preprocess_payload.get(
|
||||
"s11_reference_bundle_path",
|
||||
model.preprocess.s11_reference_bundle_path,
|
||||
)
|
||||
)
|
||||
|
||||
model.gpr.mode = str(gpr_payload.get("mode", model.gpr.mode))
|
||||
@@ -127,6 +161,7 @@ def run_config_from_dict(payload: dict[str, Any]) -> RunConfigModel:
|
||||
model.ensure_combos()
|
||||
return model
|
||||
|
||||
|
||||
def run_config_to_dict(model: RunConfigModel) -> dict[str, Any]:
|
||||
"""Encode :class:`RunConfigModel` to C++ pipeline-compatible JSON structure."""
|
||||
model.ensure_combos()
|
||||
@@ -178,10 +213,14 @@ def run_config_to_dict(model: RunConfigModel) -> dict[str, Any]:
|
||||
"combos": [{"input": combo.input, "output": combo.output} for combo in model.combos],
|
||||
},
|
||||
"preprocess": {
|
||||
"calibration_set": model.preprocess.calibration_set,
|
||||
"reference_set": model.preprocess.reference_set,
|
||||
"calibration_bundle_path": model.preprocess.calibration_bundle_path,
|
||||
"reference_bundle_path": model.preprocess.reference_bundle_path,
|
||||
"s21_calibration_set": model.preprocess.s21_calibration_set,
|
||||
"s21_reference_set": model.preprocess.s21_reference_set,
|
||||
"s21_calibration_bundle_path": model.preprocess.s21_calibration_bundle_path,
|
||||
"s21_reference_bundle_path": model.preprocess.s21_reference_bundle_path,
|
||||
"s11_open_calibration_bundle_path": model.preprocess.s11_open_calibration_bundle_path,
|
||||
"s11_short_calibration_bundle_path": model.preprocess.s11_short_calibration_bundle_path,
|
||||
"s11_load_calibration_bundle_path": model.preprocess.s11_load_calibration_bundle_path,
|
||||
"s11_reference_bundle_path": model.preprocess.s11_reference_bundle_path,
|
||||
},
|
||||
"gpr": {
|
||||
"mode": model.gpr.mode,
|
||||
|
||||
Reference in New Issue
Block a user