From 9680202b4cd7bbe141eb59266749780e5412859a Mon Sep 17 00:00:00 2001 From: Youcef AOUAD Date: Thu, 11 Jul 2024 10:55:54 +0200 Subject: [PATCH] net rep copy fixed --- src/Solver/AdisTS.py | 8 ++++++++ tests_cases/Enlargement/Enlargement.pamhyr | Bin 237568 -> 237568 bytes 2 files changed, 8 insertions(+) diff --git a/src/Solver/AdisTS.py b/src/Solver/AdisTS.py index 1a69cdbd..5219c851 100644 --- a/src/Solver/AdisTS.py +++ b/src/Solver/AdisTS.py @@ -20,6 +20,8 @@ import os import logging import numpy as np +import shutil + from tools import ( trace, timer, logger_exception, timestamp_to_old_pamhyr_date, @@ -131,6 +133,12 @@ class AdisTS(CommandLineSolver): self._export_REP_additional_lines(study, f) + path_mage_net = os.path.join(os.path.abspath(os.path.join(repertory, os.pardir)), f"default-mage/net") + path_adists_net = os.path.join(repertory, "net") + + if os.path.exists(path_mage_net): + shutil.copytree(path_mage_net, path_adists_net, dirs_exist_ok=True) + @timer def export(self, study, repertory, qlog=None): self._study = study diff --git a/tests_cases/Enlargement/Enlargement.pamhyr b/tests_cases/Enlargement/Enlargement.pamhyr index c2c49f7d14fad138c40a9adf02ba7aaf61914a5a..8c2081b25245a1faf647f1de832a52fe2f97cdb1 100644 GIT binary patch delta 100 zcmZoTz}IkqZ$q0rucd*RrMZcok)^4HrP1ce@(~L16%|G-^2}>_7+D#FnV2dn44DO( zckwbXFfj7JW8i_7+D#FnV1q26PX2= zckwbXFfj6eW#FHFv4L4-vx373elAW%HU>dXPR1a^=Kucf|NR+(m}&cee`dx20NUjm AS^xk5