gkaguirrelab / pupilMelanopsinMRIAnalysis

Code for eye tracking experiments and analysis associated with the MelanopsinMR project
MIT License
0 stars 0 forks source link

Cell array with stimulus labels seems wonky #16

Closed spitschan closed 7 years ago

spitschan commented 7 years ago

In maxMelLSM_CRF_Pupil_d702e5898732600707fb32a2302d4772.mat and other packet caches that I've since created, it looks like the cell array with the stimulus labels is somehow wonky:

>> mergedPacketCellArray{1}{1}.stimulus.metaData.stimLabels{:}

ans =
MelanopsinMRMaxLMS_PulseMaxLMS_3s_CRF16sSegment_50%

ans =
MelanopsinMRMaxLMS_AttentionTask16sSegment_25%

ans =
MelanopsinMRMaxLMS_PulseMaxLMS_3s_CRF16sSegment_25%

ans =
MelanopsinMRMaxLMS_PulseMaxLMS_3s_CRF16sSegment_100%

ans =
MelanopsinMRMaxLMS_PulseMaxLMS_3s_CRF16sSegment_200%

ans =
MelanopsinMRMaxLMS_PulseMaxLMS_3s_CRF16sSegment_50%

The 50% label appears twice and the 400% never.

The function that populates the field is pupilMelanopsinMRImakeStimStruct, lines 61-73.

I am investigating...

spitschan commented 7 years ago

Note: This bug would only be problematic if you're using the .metaData.stimLabels field (instead of .metaData.stimTypes)

spitschan commented 7 years ago

Fixed in https://github.com/gkaguirrelab/pupilMelanopsinMRIAnalysis/pull/17