Spaces:
Sleeping
Sleeping
fix previous fix
Browse files- predict-gui.py +1 -1
predict-gui.py
CHANGED
|
@@ -35,7 +35,7 @@ def process_file(input_file, config_file, weights_file, input_spectrometer_frequ
|
|
| 35 |
input_spectrometer_frequency = None
|
| 36 |
# Load configuration and initialize predictor
|
| 37 |
config = OmegaConf.load(config_file)
|
| 38 |
-
model_ppm_per_point = config.data.get("frq_step", config.metadata.frq_step) / config.metadata.spectrometer_frequency
|
| 39 |
predictor = initialize_predictor(config, weights_file)
|
| 40 |
|
| 41 |
# Load input data
|
|
|
|
| 35 |
input_spectrometer_frequency = None
|
| 36 |
# Load configuration and initialize predictor
|
| 37 |
config = OmegaConf.load(config_file)
|
| 38 |
+
model_ppm_per_point = config.data.get("frq_step", config.metadata.get("frq_step")) / config.metadata.spectrometer_frequency
|
| 39 |
predictor = initialize_predictor(config, weights_file)
|
| 40 |
|
| 41 |
# Load input data
|