Closed Aaronearlerichardson closed 1 year ago
I make extractTrialInfo Task agnostic by commenting out the following snippet: https://github.com/coganlab/IEEG_Pipelines/blob/b6933ab04bdfe2af045e751c02846e0897c7aa1c/MATLAB/ieegClassDefinition/extractTrialInfo.m#L52-L57 Now this script mirrors the behavior of extractHGDataWithROI.m but with the trialInfo. This fixes the issue for now
Issue not fixed because https://github.com/coganlab/IEEG_Pipelines/blob/b01a39991e3f0978f684601fde01eee4b4ec5ec6/MATLAB/ieegClassDefinition/extractHGDataWithROI.m#L1 needs to include removed trials data
With the iteration here: https://github.com/coganlab/IEEG_Pipelines/blob/b01a39991e3f0978f684601fde01eee4b4ec5ec6/MATLAB/ieegClassDefinition/extractHGDataWithROI.m#L1
It does not record which trials were removed, it only removes them. This is a problem when trying to apply the trialInfo data to the new set because there's no way to know which trials to remove from trialInfo without backtracking through the structclass function and coding it by hand, which sort of defeats the convenience of the function.