Skip to content

Commit

Permalink
fixed clashing folder names for loss distribution outputs (#415)
Browse files Browse the repository at this point in the history
* moved loss distribution folders into tmp folder

* updated output dir

* renamed loss directories
  • Loading branch information
HusainAdam authored Oct 29, 2024
1 parent 539f2e2 commit ebedc21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/links/thermal_twinbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def generateLossDistribution(self):
+ self.lossNames[lossIndex]
)

exportDirectory = os.path.join(self.outputDirectory, "dpDis" + str(lossIndex))
exportDirectory = os.path.join(self.outputDirectory, "tmp", "dis" + str(lossIndex))

lossVector = np.zeros(numLossParameters)
lossVector[lossIndex] = inputLoss
Expand Down Expand Up @@ -811,7 +811,7 @@ def temperaturesHousingAmbient():
working_folder = os.getcwd()
mcad_name = "e8_mobility"
inputMotFilePath = os.path.join(working_folder, mcad_name + ".mot")
outputDir = os.path.join(working_folder, "thermal_twinbuilder", mcad_name + "_TwinOutput")
outputDir = os.path.join(working_folder, "thermal_twinbuilder_" + mcad_name)

# %%
# Create the e8 input file if it does not exist already
Expand Down

0 comments on commit ebedc21

Please sign in to comment.