[main] adding simple checks
This commit is contained in:
parent
13e418f81e
commit
c37ff0562c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user