Skip to content

Commit

Permalink
HostingCapacity: Fixed Feeder name
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-nyx committed Dec 10, 2024
1 parent 5530a6f commit 0af82e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omf/models/hostingCapacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def run_traditional_algorithm( modelDir, inputDict, outData ):
# traditional hosting capacity if they uploaded an omd circuit file and chose to use it.
# Check if the file was uploaded and checks to make sure the name matches
feederName = [x for x in os.listdir(modelDir) if x.endswith('.omd')][0]
inputDict['feederName1'] = feederName[:-4]
path_to_omd = Path(modelDir, feederName)
tree = opendss.dssConvert.omdToTree(path_to_omd)
opendss.dssConvert.treeToDss(tree, Path(modelDir, 'circuit.dss'))
Expand Down

0 comments on commit 0af82e6

Please sign in to comment.