Skip to content

Commit

Permalink
lint and channel tolerances were slightly worse in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Sep 25, 2023
1 parent 3e5ce50 commit 40fb38a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions autotest/test_prms_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

import pytest

from pywatershed.base.control import Control
from pywatershed.base.adapter import adapter_factory
from pywatershed.base.control import Control
from pywatershed.base.parameters import Parameters
from pywatershed.hydrology.prms_channel import PRMSChannel, has_prmschannel_f
from pywatershed.parameters import PrmsParameters

from utils_compare import compare_in_memory, compare_netcdfs

# compare in memory (faster) or full output files?
compare_output_files = False
rtol = atol = 1.0e-8
rtol = atol = 1.0e-7

fail_fast = False

Expand Down
1 change: 0 additions & 1 deletion autotest/test_prms_groundwater.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pywatershed.base.adapter import adapter_factory
from pywatershed.hydrology.prms_groundwater import has_prmsgroundwater_f
from pywatershed.parameters import PrmsParameters

from utils_compare import compare_in_memory, compare_netcdfs

# compare in memory (faster) or full output files?
Expand Down
3 changes: 2 additions & 1 deletion autotest/utils_compare.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import pathlib as pl

import numpy as np
import pywatershed as pws
import xarray as xr

import pywatershed as pws


def assert_allclose(
actual: np.ndarray,
Expand Down

0 comments on commit 40fb38a

Please sign in to comment.