Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant