Refactor radar system
This commit is contained in:
@@ -11,7 +11,6 @@ from python_app.models.run_config_model import PreprocessAssetModel, RunConfigMo
|
||||
class PreprocessAssetSpec:
|
||||
"""Stable description of one preprocess asset."""
|
||||
|
||||
key: str
|
||||
display_name: str
|
||||
set_kind: str
|
||||
runtime_filename: str
|
||||
@@ -19,48 +18,12 @@ class PreprocessAssetSpec:
|
||||
|
||||
|
||||
PREPROCESS_ASSET_SPECS = {
|
||||
"s21_calibration": PreprocessAssetSpec(
|
||||
key="s21_calibration",
|
||||
display_name="S21 Calibration",
|
||||
set_kind="s21_calibration",
|
||||
runtime_filename="s21_calibration_bundle.bin",
|
||||
channel="s21",
|
||||
),
|
||||
"s21_reference": PreprocessAssetSpec(
|
||||
key="s21_reference",
|
||||
display_name="S21 Reference",
|
||||
set_kind="s21_reference",
|
||||
runtime_filename="s21_reference_bundle.bin",
|
||||
channel="s21",
|
||||
),
|
||||
"s11_open": PreprocessAssetSpec(
|
||||
key="s11_open",
|
||||
display_name="S11 Open",
|
||||
set_kind="s11_open",
|
||||
runtime_filename="s11_open_calibration_bundle.bin",
|
||||
channel="s11",
|
||||
),
|
||||
"s11_short": PreprocessAssetSpec(
|
||||
key="s11_short",
|
||||
display_name="S11 Short",
|
||||
set_kind="s11_short",
|
||||
runtime_filename="s11_short_calibration_bundle.bin",
|
||||
channel="s11",
|
||||
),
|
||||
"s11_load": PreprocessAssetSpec(
|
||||
key="s11_load",
|
||||
display_name="S11 Load",
|
||||
set_kind="s11_load",
|
||||
runtime_filename="s11_load_calibration_bundle.bin",
|
||||
channel="s11",
|
||||
),
|
||||
"s11_reference": PreprocessAssetSpec(
|
||||
key="s11_reference",
|
||||
display_name="S11 Reference",
|
||||
set_kind="s11_reference",
|
||||
runtime_filename="s11_reference_bundle.bin",
|
||||
channel="s11",
|
||||
),
|
||||
"s21_calibration": PreprocessAssetSpec("S21 Calibration", "s21_calibration", "s21_calibration_bundle.bin", "s21"),
|
||||
"s21_reference": PreprocessAssetSpec("S21 Reference", "s21_reference", "s21_reference_bundle.bin", "s21"),
|
||||
"s11_open": PreprocessAssetSpec("S11 Open", "s11_open", "s11_open_calibration_bundle.bin", "s11"),
|
||||
"s11_short": PreprocessAssetSpec("S11 Short", "s11_short", "s11_short_calibration_bundle.bin", "s11"),
|
||||
"s11_load": PreprocessAssetSpec("S11 Load", "s11_load", "s11_load_calibration_bundle.bin", "s11"),
|
||||
"s11_reference": PreprocessAssetSpec("S11 Reference", "s11_reference", "s11_reference_bundle.bin", "s11"),
|
||||
}
|
||||
|
||||
PREPROCESS_ASSET_KEYS = tuple(PREPROCESS_ASSET_SPECS.keys())
|
||||
|
||||
Reference in New Issue
Block a user