spatialtopology / spacetop-prep

code for transferring data and preprocessing
MIT License
0 stars 3 forks source link

[BUG] c02_save_separate_run.py #49

Open Michael-Sun opened 8 months ago

Michael-Sun commented 8 months ago

Which module is this from?

physio

What is the issue?

No warning or error message is displayed when physio file is processed by there is insufficient metadata to account for all of the runs detected.

What was your expected behavior?

File will be processed and all runs will be output, but named according to the available metadata. A warning or error should be thrown to alert the user that this has happened.

How can we reproduce this?

run c02_save_separate_run.py on an acqknowledge file with more runs than metadata has names for.

Any additional context?

(Write your answer here.)

Michael-Sun commented 8 months ago

Turns out this issue also occurs when the metadata specifies more than the number of runs that the script detects in the acqknowledge file.