@@ -109,10 +109,20 @@ def get_channel_type_constants(include_defaults=False):
109109 unit = FIFF .FIFF_UNIT_V ,
110110 coil_type = FIFF .FIFFV_COIL_FNIRS_TD_GATED_AMPLITUDE ,
111111 ),
112- fnirs_td_moments_amplitude = dict (
112+ fnirs_td_moments_intensity = dict (
113113 kind = FIFF .FIFFV_FNIRS_CH ,
114- unit = FIFF .FIFF_UNIT_V ,
115- coil_type = FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_AMPLITUDE ,
114+ unit = FIFF .FIFF_UNIT_UNITLESS ,
115+ coil_type = FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_INTENSITY ,
116+ ),
117+ fnirs_td_moments_mean = dict (
118+ kind = FIFF .FIFFV_FNIRS_CH ,
119+ unit = FIFF .FIFF_UNIT_S ,
120+ coil_type = FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_MEAN ,
121+ ),
122+ fnirs_td_moments_variance = dict (
123+ kind = FIFF .FIFFV_FNIRS_CH ,
124+ unit = FIFF .FIFF_UNIT_NONE , # TODO: Maybe someday add s^2
125+ coil_type = FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_VARIANCE ,
116126 ),
117127 fnirs_od = dict (kind = FIFF .FIFFV_FNIRS_CH , coil_type = FIFF .FIFFV_COIL_FNIRS_OD ),
118128 hbo = dict (
@@ -208,7 +218,9 @@ def get_channel_type_constants(include_defaults=False):
208218 FIFF .FIFFV_COIL_FNIRS_FD_PHASE : "fnirs_fd_phase" ,
209219 FIFF .FIFFV_COIL_FNIRS_OD : "fnirs_od" ,
210220 FIFF .FIFFV_COIL_FNIRS_TD_GATED_AMPLITUDE : "fnirs_td_gated_amplitude" ,
211- FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_AMPLITUDE : "fnirs_td_moments_amplitude" ,
221+ FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_INTENSITY : "fnirs_td_moments_intensity" ,
222+ FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_MEAN : "fnirs_td_moments_mean" ,
223+ FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_VARIANCE : "fnirs_td_moments_variance" ,
212224 },
213225 ),
214226 "eeg" : (
@@ -398,13 +410,23 @@ def _triage_fnirs_pick(ch, fnirs, warned):
398410 elif ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_OD and "fnirs_od" in fnirs :
399411 return True
400412 elif (
401- ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_AMPLITUDE
402- and "fnirs_td_moments_amplitude " in fnirs
413+ ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_GATED_AMPLITUDE
414+ and "fnirs_td_gated_amplitude " in fnirs
403415 ):
404416 return True
405417 elif (
406- ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_GATED_AMPLITUDE
407- and "fnirs_td_gated_amplitude" in fnirs
418+ ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_INTENSITY
419+ and "fnirs_td_moments_intensity" in fnirs
420+ ):
421+ return True
422+ elif (
423+ ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_MEAN
424+ and "fnirs_td_moments_mean" in fnirs
425+ ):
426+ return True
427+ elif (
428+ ch ["coil_type" ] == FIFF .FIFFV_COIL_FNIRS_TD_MOMENTS_VARIANCE
429+ and "fnirs_td_moments_variance" in fnirs
408430 ):
409431 return True
410432 return False
@@ -885,7 +907,9 @@ def channel_indices_by_type(info, picks=None):
885907 fnirs_fd_phase = list (),
886908 fnirs_od = list (),
887909 fnirs_td_gated_amplitude = list (),
888- fnirs_td_moments_amplitude = list (),
910+ fnirs_td_moments_intensity = list (),
911+ fnirs_td_moments_mean = list (),
912+ fnirs_td_moments_variance = list (),
889913 eyegaze = list (),
890914 pupil = list (),
891915 )
@@ -1123,8 +1147,10 @@ def _check_excludes_includes(chs, info=None, allow_bads=False):
11231147 "fnirs_fd_ac_amplitude" ,
11241148 "fnirs_fd_phase" ,
11251149 "fnirs_od" ,
1126- "fnirs_td_moments_amplitude" ,
11271150 "fnirs_td_gated_amplitude" ,
1151+ "fnirs_td_moments_intensity" ,
1152+ "fnirs_td_moments_mean" ,
1153+ "fnirs_td_moments_variance" ,
11281154)
11291155_EYETRACK_CH_TYPES_SPLIT = ("eyegaze" , "pupil" )
11301156_DATA_CH_TYPES_ORDER_DEFAULT = (
0 commit comments