Skip to content

Commit

Permalink
updated iowa240.omd and hosting capacity to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-nyx committed Oct 4, 2023
1 parent 53db3b5 commit 06e8360
Show file tree
Hide file tree
Showing 2 changed files with 13,083 additions and 2 deletions.
5 changes: 3 additions & 2 deletions omf/models/hostingCapacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def work(modelDir, inputDict):
opendss.dssConvert.treeToDss(tree, pJoin(modelDir, 'circuit.dss'))
traditionalHCResults = opendss.hosting_capacity_all(pJoin(modelDir, 'circuit.dss'), int(inputDict["traditionalHCSteps"]), int(inputDict["traditionalHCkW"]))
tradHCDF = pd.DataFrame(traditionalHCResults)
print(tradHCDF)
tradHCDF['plot_color'] = tradHCDF.apply ( lambda row: bar_chart_coloring(row), axis=1 )
traditionalHCFigure = px.bar( tradHCDF, x='bus', y='max_kw', barmode='group', color='plot_color', color_discrete_map={ 'red': 'red', 'orange': 'orange', 'green': 'green', 'yellow': 'yellow'}, template='simple_white' )
traditionalHCFigure.update_xaxes(categoryorder='array', categoryarray=tradHCDF.bus.values)
Expand Down Expand Up @@ -130,10 +131,10 @@ def new(modelDir):
"mohcaAlgorithm": 'sandia1',
"inputDataFileName": meter_file_name,
"inputDataFileContent": meter_file_contents,
"feederName1": 'ieee37.dss',
"feederName1": 'iowa240.clean.dss',
"traditionalHCSteps": 10,
"optionalCircuitFile": 'on',
"traditionalHCkW": 1
"traditionalHCkW": 10
}
creationCode = __neoMetaModel__.new(modelDir, defaultInputs)
try:
Expand Down
Loading

0 comments on commit 06e8360

Please sign in to comment.