You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After importing a BIDS dataset as a STUDY, when cases are cleared from the STUDY, they remain in STUDY.design.cases.value (possibly other variables). This means that an error comes up at line 248 of std_readdata further down the pipeline as the subjectList (created on line 154 of std_readdata) doesn't have a matching file (248: fileName = getfilename({STUDY.datasetinfo(datInds).filepath}, STUDY.datasetinfo(datInds(1)).subject, { STUDY.datasetinfo(datInds).session }, fileExt, length(uniqueSessions) == 1);)
#### Steps to Reproduce
Import BIDS STUDY folder (may occur for other Study setups - I haven't tested)
In the EEGLAB GUI: select 'Study' > 'Edit study info'
Use the 'Clear' button to remove a file or two and click 'Ok'
Examine the 'STUDY.design.cases.value' variable in the MATLAB command window. The cleared subject numbers remain present for me.
#### Expected behavior:
I would expect that using the 'Clear' button would remove files/participants from the Study data set at all levels.
#### Actual behavior:
Despite the row being cleared in the 'Study' > 'Edit study info' GUI, some elements of the file remain and can cause issues at later stages. For example, when plotting:
#### Versions
OS version
Microsoft Windows 10 Enterprise - 10.0.19045 Build 19045
Matlab version
'9.13.0.2080170 (R2022b) Update 1'
EEGLAB version
v2024.0
The text was updated successfully, but these errors were encountered:
Description
After importing a BIDS dataset as a STUDY, when cases are cleared from the STUDY, they remain in STUDY.design.cases.value (possibly other variables). This means that an error comes up at line 248 of std_readdata further down the pipeline as the subjectList (created on line 154 of std_readdata) doesn't have a matching file (248: fileName = getfilename({STUDY.datasetinfo(datInds).filepath}, STUDY.datasetinfo(datInds(1)).subject, { STUDY.datasetinfo(datInds).session }, fileExt, length(uniqueSessions) == 1);)
#### Steps to Reproduce
#### Expected behavior: I would expect that using the 'Clear' button would remove files/participants from the Study data set at all levels.
#### Actual behavior: Despite the row being cleared in the 'Study' > 'Edit study info' GUI, some elements of the file remain and can cause issues at later stages. For example, when plotting:
#### Versions
The text was updated successfully, but these errors were encountered: