This PR solves the issue raised in #2 where rois present in the metadata were not actually acquired because the acquisition run was aborted. The solution of this PR is to check the number of channels of each roi. Non-acquired rois have 0 channels and can therefore be removed. Now when querying the number of rois of a dataset, only the rois with n_channels > 0 are considered.
This PR also fixes a potential problem when running the analysis over a folder. Instead of assuming that all files have the same number of rois, now this number is set separately for each file.
This PR solves the issue raised in #2 where rois present in the metadata were not actually acquired because the acquisition run was aborted. The solution of this PR is to check the number of channels of each roi. Non-acquired rois have 0 channels and can therefore be removed. Now when querying the number of rois of a dataset, only the rois with n_channels > 0 are considered.
This PR also fixes a potential problem when running the analysis over a folder. Instead of assuming that all files have the same number of rois, now this number is set separately for each file.