Skip to content

Commit

Permalink
Widen absolute error threshold default to 1e-3
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Oct 4, 2023
1 parent 9731667 commit 5b9984d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion policyengine_core/tools/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
)
from policyengine_core.scripts import build_tax_benefit_system
from policyengine_core.reforms import Reform, set_parameter
from policyengine_core.populations import ADD, DIVIDE

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -464,7 +465,7 @@ def assert_near(
import numpy as np

if absolute_error_margin is None and relative_error_margin is None:
absolute_error_margin = 0
absolute_error_margin = 1e-3
if not isinstance(value, np.ndarray):
value = np.array(value)
if isinstance(value, EnumArray):
Expand Down

0 comments on commit 5b9984d

Please sign in to comment.