Skip to content

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

Open
RyanJMcCarty wants to merge 1 commit intousnistgov:masterfrom
RyanJMcCarty:master
Open

Update mcr.py to avoid infrequent Nan error when working with small simple datasets#31
RyanJMcCarty wants to merge 1 commit intousnistgov:masterfrom
RyanJMcCarty:master

Conversation

@RyanJMcCarty
Copy link

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.

In some dataset mcr.py will create a C_temp with Nan values. Where C is unknown and an SVD guess is provided for ST. I didn't look into the problem futher, but this fix does solve the issue if present, and if not present the added code adds infinitesimally to the total run time.  Seems to be more of an issue in small datasets with very high S/N and somewhat small ST. 

If the Nan values are not removed, the script will crash at line 421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant