Loading ivas_processing_scripts/processing/config.py +7 −2 Original line number Diff line number Diff line Loading @@ -141,8 +141,13 @@ class TestConfig: # validate preprocessing on concatenated file stage if (pre_proc_2 := getattr(cfg, "preprocessing_2", None)) is not None: bg_noise_folder = Path(pre_proc_2["background_noise_path"]).parent if bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute(): raise ValueError(f"Background noise file has to be placed outside the input folder!") if ( bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute() ): raise ValueError( f"Background noise file has to be placed outside the input folder!" ) for cond_name, cond_cfg in cfg.get("conditions_to_generate").items(): type = cond_cfg.get("type") Loading Loading
ivas_processing_scripts/processing/config.py +7 −2 Original line number Diff line number Diff line Loading @@ -141,8 +141,13 @@ class TestConfig: # validate preprocessing on concatenated file stage if (pre_proc_2 := getattr(cfg, "preprocessing_2", None)) is not None: bg_noise_folder = Path(pre_proc_2["background_noise_path"]).parent if bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute(): raise ValueError(f"Background noise file has to be placed outside the input folder!") if ( bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute() ): raise ValueError( f"Background noise file has to be placed outside the input folder!" ) for cond_name, cond_cfg in cfg.get("conditions_to_generate").items(): type = cond_cfg.get("type") Loading