[main] adding simple checks

This commit is contained in:
wendtalexander 2025-10-08 16:03:19 +02:00
parent 13e418f81e
commit c37ff0562c

View File

@ -35,6 +35,13 @@ def main(
log.info(f"Selected data_path is {data_path}")
open_ephys_data_paths = list(Path(data_path).rglob("*open-ephys"))
relacs_data_paths = list(Path(data_path).rglob("*relacs/*.nix"))
if not open_ephys_data_paths:
log.error("Did not find any open-ephys data")
raise typer.Exit()
if not relacs_data_paths:
log.error("Did not find any relacs data")
raise typer.Exit()
if len(open_ephys_data_paths) != len(relacs_data_paths):
log.error(