Skip to content

Commit

Permalink
fix conda again (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
thurber authored Sep 23, 2022
1 parent b4ecd92 commit 6ea7bef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mosartwmpy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.2"
__version__ = "0.4.3"
8 changes: 7 additions & 1 deletion mosartwmpy/tests/test_calculate_water_constraints_by_farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class CalculateWaterConstraintsByFarmTest(unittest.TestCase):
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')
RESERVOIRS_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/reservoirs.nc')
DEPENDENCY_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/dependency_database.parquet')
MEAN_FLOW_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/mean_flow.parquet')
MEAN_DEMAND_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/mean_demand.parquet')
CONSTRAINTS_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/test_land_water_constraints_by_farm.parquet')
LIVE_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/test_land_water_constraints_by_farm_live.parquet')
BIAS_FILE = pkg_resources.resource_filename('mosartwmpy', 'tests/test_historic_storage_supply_bias.parquet')
Expand All @@ -27,7 +30,10 @@ def test_calculate_water_constraints_by_farm(self):
# set paths for runoff data relative to package
model.config['runoff.path'] = self.RUNOFF_FILE
model.config['water_management.demand.path'] = self.DEMAND_FILE
model.config['water_management.reservoirs.path'] = self.RESERVOIRS_FILE
model.config['water_management.reservoirs.parameters.path'] = self.RESERVOIRS_FILE
model.config['water_management.reservoirs.dependencies.path'] = self.DEPENDENCY_FILE
model.config['water_management.reservoirs.streamflow.path'] = self.MEAN_DEMAND_FILE
model.config['water_management.reservoirs.demand.path'] = self.MEAN_FLOW_FILE
model.config['water_management.demand.farmer_abm.land_water_constraints.path'] = self.CONSTRAINTS_FILE
model.config['water_management.demand.farmer_abm.land_water_constraints_live.path'] = self.LIVE_FILE
model.config['water_management.demand.farmer_abm.historic_storage_supply.path'] = self.BIAS_FILE
Expand Down

0 comments on commit 6ea7bef

Please sign in to comment.