Skip to content

Commit

Permalink
Merge pull request #594 from bachlab/fix-dcm
Browse files Browse the repository at this point in the history
fix bug in DCM
  • Loading branch information
teddychao authored Jan 24, 2024
2 parents 5f7b6f1 + ecad333 commit 69fbc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pspm_dcm.m
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
for vs = 1:numel(valid_subsessions)
isbSn = valid_subsessions(vs);
sbSn = subsessions(isbSn, :);
flanks = pspm_time2index(sbSn(2:3), data{sbSn(1)}{1}.header.sr);
flanks = pspm_time2index(sbSn(2:3), sr{sbSn(1)});
sbSn_data = y{sbSn(1)}(flanks(1):flanks(2));
sbs_miss = isnan(sbSn_data);

Expand Down

0 comments on commit 69fbc0c

Please sign in to comment.