Skip to content

Commit

Permalink
Merge pull request #94 from switch-model/pypi_setup
Browse files Browse the repository at this point in the history
rename switch_mod to switch_model; prepare switch_model package for upload to pypi.
  • Loading branch information
mfripp authored Apr 19, 2017
2 parents 0c55de1 + d71bdac commit 8b50539
Show file tree
Hide file tree
Showing 146 changed files with 23,520 additions and 22,825 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.idea
.DS_Store
gurobi.log
SWITCH.egg-info/
switch_model.egg-info/
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This contains the Switch electricity planning model written in Pyomo.
This contains version 2 of the Switch electricity planning model.
This optimization model is modular and can be used with varying levels
of complexity. Look in the examples directory for demonstrations of
using Switch for investment planning or production cost simulation. The
Expand Down
26 changes: 13 additions & 13 deletions examples/3zone_toy/inputs/modules.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Core Modules
switch_mod
switch_mod.timescales
switch_mod.financials
switch_mod.balancing.load_zones
switch_mod.energy_sources.properties
switch_mod.generators.core.build
switch_mod.generators.core.dispatch
switch_mod.reporting
switch_model
switch_model.timescales
switch_model.financials
switch_model.balancing.load_zones
switch_model.energy_sources.properties
switch_model.generators.core.build
switch_model.generators.core.dispatch
switch_model.reporting
# Custom Modules
switch_mod.transmission.local_td
switch_mod.generators.core.no_commit
switch_mod.energy_sources.fuel_costs.markets
switch_mod.transmission.transport.build
switch_mod.transmission.transport.dispatch
switch_model.transmission.local_td
switch_model.generators.core.no_commit
switch_model.energy_sources.fuel_costs.markets
switch_model.transmission.transport.build
switch_model.transmission.transport.dispatch
2 changes: 1 addition & 1 deletion examples/3zone_toy/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b1
2.0.0b2
6 changes: 3 additions & 3 deletions examples/3zone_toy_stochastic_PySP/PySPInputGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@

###########################################################

import switch_mod.utilities as utilities
import switch_mod.solve
import switch_model.utilities as utilities
import switch_model.solve
import sys, os
from pyomo.environ import *

print "creating model for scenario input generation..."

module_list = switch_mod.solve.get_module_list(args=None)
module_list = switch_model.solve.get_module_list(args=None)
model = utilities.create_model(module_list)

print "model successfully created..."
Expand Down
10 changes: 5 additions & 5 deletions examples/3zone_toy_stochastic_PySP/ReferenceModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@

###########################################################

import switch_mod.utilities as utilities
import switch_mod.financials as financials
import switch_mod.solve
import switch_model.utilities as utilities
import switch_model.financials as financials
import switch_model.solve
import sys, os
from pyomo.environ import *

print "loading model..."

# Ideally, we would use the main codebase to generate the model, but the
# mandatory switch argument parser is interferring with pysp's command line tools
#model = switch_mod.solve.main(return_model=True)
#model = switch_model.solve.main(return_model=True)

module_list = switch_mod.solve.get_module_list(args=None)
module_list = switch_model.solve.get_module_list(args=None)
model = utilities.create_model(module_list, args=[])

# The following code augments the model object with Expressions for the
Expand Down
26 changes: 13 additions & 13 deletions examples/3zone_toy_stochastic_PySP/inputs/modules.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Core Modules
switch_mod
switch_mod.timescales
switch_mod.financials
switch_mod.balancing.load_zones
switch_mod.energy_sources.properties
switch_mod.generators.core.build
switch_mod.generators.core.dispatch
switch_mod.reporting
switch_model
switch_model.timescales
switch_model.financials
switch_model.balancing.load_zones
switch_model.energy_sources.properties
switch_model.generators.core.build
switch_model.generators.core.dispatch
switch_model.reporting
# Custom Modules
switch_mod.transmission.local_td
switch_mod.generators.core.no_commit
switch_mod.energy_sources.fuel_costs.simple
switch_mod.transmission.transport.build
switch_mod.transmission.transport.dispatch
switch_model.transmission.local_td
switch_model.generators.core.no_commit
switch_model.energy_sources.fuel_costs.simple
switch_model.transmission.transport.build
switch_model.transmission.transport.dispatch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b1
2.0.0b2
Loading

0 comments on commit 8b50539

Please sign in to comment.