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

fix: allow small tolerance for negative pg/carbon data #133

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

danielolsen
Copy link
Contributor

Purpose

Avoid errors caused by small negative values.

What is the code doing

  • Change the check from < 0 to < -1 * tolerance
  • Simplify np.sum(x) > 0 to any(x)
  • Update the docstring

Time to review

Five minutes.

Copy link
Collaborator

@merrielle merrielle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@danielolsen danielolsen force-pushed the tolerance_in_carbon_calcs branch from 7f57556 to 6534333 Compare July 7, 2020 23:00
@danielolsen danielolsen merged commit 54d8681 into develop Jul 7, 2020
@danielolsen danielolsen deleted the tolerance_in_carbon_calcs branch July 7, 2020 23:03
@ahurli ahurli mentioned this pull request Mar 16, 2021
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.

3 participants