From d1ebb1b38b1792aba63ceba0bc1bfa25c20d5981 Mon Sep 17 00:00:00 2001 From: Travis Thurber Date: Fri, 23 Sep 2022 17:05:33 -0700 Subject: [PATCH] please work (#97) --- mosartwmpy/_version.py | 2 +- mosartwmpy/tests/test_calculate_water_constraints_by_farm.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mosartwmpy/_version.py b/mosartwmpy/_version.py index f6b7e26..cd1ee63 100644 --- a/mosartwmpy/_version.py +++ b/mosartwmpy/_version.py @@ -1 +1 @@ -__version__ = "0.4.3" +__version__ = "0.4.4" diff --git a/mosartwmpy/tests/test_calculate_water_constraints_by_farm.py b/mosartwmpy/tests/test_calculate_water_constraints_by_farm.py index 0c5a26a..32be1e9 100644 --- a/mosartwmpy/tests/test_calculate_water_constraints_by_farm.py +++ b/mosartwmpy/tests/test_calculate_water_constraints_by_farm.py @@ -10,6 +10,7 @@ class CalculateWaterConstraintsByFarmTest(unittest.TestCase): GRID_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/grid.zip') + OUTPUT_PATH = pkg_resources.resource_filename('mosartwmpy', 'tests') CONFIG_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/test_config.yaml') RUNOFF_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/runoff_1981_01_01.nc') DEMAND_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/demand_1981_01_01.nc') @@ -28,6 +29,7 @@ def test_calculate_water_constraints_by_farm(self): model.initialize(self.CONFIG_FILE, grid=grid) # set paths for runoff data relative to package + model.config['simulation.output_path'] = self.OUTPUT_PATH model.config['runoff.path'] = self.RUNOFF_FILE model.config['water_management.demand.path'] = self.DEMAND_FILE model.config['water_management.reservoirs.parameters.path'] = self.RESERVOIRS_FILE