nirs.modules.DiscardTypes

See also nirs.modules.KeepTypes

Untitled

nirs.modules.DiscardTypes

This module can discard the data types (HbO, HbR, or HbT). This module will accept either nirs.core.Data (time-series), nirs.core.ChannelStats, nirs.core.sFCStats, or nirs.core.ChannelFStats variables.
raw = nirs.testing.simData;
 
job = nirs.modules.Resample();
job = nirs.modules.OpticalDensity(job);
job = nirs.modules.BeerLambertLaw(job);
 
hb = job.run(raw);
hb.probe.link
ans = 32×3 table
 sourcedetectortype
111‘hbo’
211‘hbr’
321‘hbo’
421‘hbr’
522‘hbo’
622‘hbr’
732‘hbo’
832‘hbr’
933‘hbo’
1033‘hbr’
1143‘hbo’
1243‘hbr’
1344‘hbo’
1444‘hbr’
â‹®
 
job = nirs.modules.DiscardTypes();
job.types = ‘hbr’
job =
DiscardTypes with properties: types: ‘hbr’ name: ‘Keep Just These Types’ prevJob: []
hb = job.run(hb);
hb.probe.link
ans = 16×3 table
 sourcedetectortype
111‘hbo’
221‘hbo’
322‘hbo’
432‘hbo’
533‘hbo’
643‘hbo’
744‘hbo’
854‘hbo’
955‘hbo’
1065‘hbo’
1166‘hbo’
1276‘hbo’
1377‘hbo’
1487‘hbo’
â‹®