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

Fixed Streamflow outputs that cause a NaN #12

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Fixed Streamflow outputs that cause a NaN #12

merged 4 commits into from
Feb 19, 2024

Conversation

taddyb
Copy link
Owner

@taddyb taddyb commented Feb 19, 2024

Added:

  • removed the nan mask and changed to use the np function np.nan_to_num()
streamflow_m3_s_data = np.nan_to_num(
        streamflow_m3_s_data, nan=1e-6, posinf=1e-6, neginf=1e-6
    )
  • This was done because setting Q` values to 0 will cause a divide by zero during $\delta MC$ backwards propagation

  • Added easy steps to the README (cloning, etc)

@taddyb taddyb merged commit 342ef5d into main Feb 19, 2024
4 checks passed
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