Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfilias committed Jul 20, 2021
2 parents e6fa5b2 + 4d0fc7b commit d82d7e1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions openTEPES/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
>>> import openTEPES as oT
>>> oT.routine("9n", "C:\\Users\\UserName\\Documents\\GitHub\\openTEPES", "glpk")
"""
__version__ = "3.1.2"

from .openTEPES_Main import main
from .openTEPES import *
Expand Down
8 changes: 4 additions & 4 deletions openTEPES/openTEPES.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

from pyomo.environ import ConcreteModel, Set

from openTEPES.openTEPES_InputData import InputData, SettingUpVariables
from openTEPES.openTEPES_ModelFormulation import InvestmentModelFormulation, GenerationOperationModelFormulation, NetworkSwitchingModelFormulation, NetworkOperationModelFormulation
from openTEPES.openTEPES_ProblemSolving import ProblemSolving
from openTEPES.openTEPES_OutputResults import InvestmentResults, GenerationOperationResults, ESSOperationResults, FlexibilityResults, NetworkOperationResults, MarginalResults, EconomicResults, NetworkMapResults
from .openTEPES_InputData import InputData, SettingUpVariables
from .openTEPES_ModelFormulation import InvestmentModelFormulation, GenerationOperationModelFormulation, NetworkSwitchingModelFormulation, NetworkOperationModelFormulation
from .openTEPES_ProblemSolving import ProblemSolving
from .openTEPES_OutputResults import InvestmentResults, GenerationOperationResults, ESSOperationResults, FlexibilityResults, NetworkOperationResults, MarginalResults, EconomicResults, NetworkMapResults


def openTEPES_run(DirName, CaseName, SolverName):
Expand Down
5 changes: 2 additions & 3 deletions openTEPES/openTEPES_Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@
import argparse
import os
# import pkg_resources
from openTEPES.openTEPES import openTEPES_run
import openTEPES
from .openTEPES import openTEPES_run

parser = argparse.ArgumentParser(description='Introducing main parameters...')
parser.add_argument('--case', type=str, default=None)
parser.add_argument('--dir', type=str, default=None)
parser.add_argument('--solver', type=str, default=None)

DIR = os.path.dirname(openTEPES.__file__)
DIR = os.path.dirname(__file__)
CASE = '9n'
SOLVER = 'glpk'

Expand Down

0 comments on commit d82d7e1

Please sign in to comment.