diff --git a/docs/Usage.md b/docs/Usage.md index cae14d9b1..643295e9c 100644 --- a/docs/Usage.md +++ b/docs/Usage.md @@ -21,7 +21,7 @@ 2. Navigate to the repository: `cd switch`. -3. Create a Python virtual environment from where you'll run Switch: `conda create --name switch`. +3. Create a Python virtual environment from where you'll run Switch: `conda create --name switch python=3.7`. 4. Activate the newly created environment: `conda activate switch`. diff --git a/setup.py b/setup.py index c09df0b58..e6cdc6cb8 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ def read(*rnames): "planning", "optimization", ], - python_requires='>=3.7', + python_requires='>=3.7,<3.11', install_requires=[ "Pyomo>=6.1,<6.4.1", # 6.1 Has all the bug fixes we need "pint", # needed by Pyomo when we run our tests, but not included diff --git a/switch_model/solve.py b/switch_model/solve.py index 317925f33..f6156c2e7 100755 --- a/switch_model/solve.py +++ b/switch_model/solve.py @@ -743,10 +743,10 @@ def solve(model): if model.options.gurobi_find_iis: # Add to the solver options 'ResultFile=iis.ilp' # https://stackoverflow.com/a/51994135/5864903 - model.options.solver_options_string += " ResultFile=iis.ilp" + options_string += " ResultFile=iis.ilp" if model.options.gurobi_make_mps: # Output the input file and set time limit to zero to ensure it doesn't actually solve - model.options.solver_options_string += f" ResultFile=problem.mps TimeLimit=0" + options_string += f" ResultFile=problem.mps TimeLimit=0" if model.options.no_crossover: if solver_type in gurobi_types: diff --git a/switch_model/tools/drop.py b/switch_model/tools/drop.py index 2c5ca1e39..3a980f16a 100644 --- a/switch_model/tools/drop.py +++ b/switch_model/tools/drop.py @@ -76,6 +76,12 @@ ('hydro_timepoints.csv', 'timepoint_id') ] ), + "hydro_timeseries": ( + ('hydro_timepoints.csv', 'tp_to_hts'), + [ + ('hydro_timeseries.csv', 'timeseries') + ] + ), "projects": ( ('generation_projects_info.csv', "GENERATION_PROJECT"), [