huppertt / nirs-toolbox

Toolbox for fNIRS analysis
91 stars 61 forks source link

Simplify Dictionary behavior, stimulus behavior, 10x speed improvement in Beer-Lambert conversion step, GPU support for GML- 3X speed improvement #11

Closed AdrianCurtin closed 2 years ago

AdrianCurtin commented 2 years ago

Also fixes to improve legacy Hitachi MES file importing (with support for legacy delimiters (tab and comma style)

AdrianCurtin commented 2 years ago

These changes were created to respond to a specific design challenge related to merging two different probes with different information styles and address changes in lack of generalizability of the nirs toolbox code as well as performance improvements.

Changes: nirs.io.loadHitachi:

external.nirsviewer.stimutil_gui

nirs.core.probe.draw

nirs.util.makeSDcolors

Bug fixes: nirs.io.loadHitachi did not properly capture event markers and could not automatically detect the delimeter type (sometimes comma is used sometimes space is used)

AdrianCurtin commented 2 years ago

Also added CUDA-style support for GLM as .useGPU option Mostly optimizes H'*H function, but produces ~ 5-6x performance boost for that function and 3x performance boost for the GLM fitting overall