pyMCR icon indicating copy to clipboard operation
pyMCR copied to clipboard

Update mcr.py to avoid infrequent Nan error when working with small simple datasets

Open RyanJMcCarty opened this issue 4 years ago • 0 comments

In some dataset mcr.py will create a C_temp with Nan values. If the Nan values are not removed, the script will crash at line 421.

I encountered the Nan value problem where C is unknown and an SVD guess is provided for ST. I didn't look into the problem further, but this fix does solve the issue if present, and if not present the added function adds infinitesimally to the total run time. This problem Seems to be more of an issue in small datasets with very high S/N and somewhat small ST. NOTE: This fix is really just a band aid. It corrects the problem, but does not fix the source.

RyanJMcCarty avatar Dec 15 '19 05:12 RyanJMcCarty