From ebedc21e26813017ae6e1cc6ffd01a710b37ee4f Mon Sep 17 00:00:00 2001 From: Husain Adam <106396468+HusainAdam@users.noreply.github.com> Date: Tue, 29 Oct 2024 23:49:16 +0530 Subject: [PATCH] fixed clashing folder names for loss distribution outputs (#415) * moved loss distribution folders into tmp folder * updated output dir * renamed loss directories --- examples/links/thermal_twinbuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/links/thermal_twinbuilder.py b/examples/links/thermal_twinbuilder.py index ecf41f51b..ce9136db2 100644 --- a/examples/links/thermal_twinbuilder.py +++ b/examples/links/thermal_twinbuilder.py @@ -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 @@ -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