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 c2c49f7d..8c2081b2 100644 Binary files a/tests_cases/Enlargement/Enlargement.pamhyr and b/tests_cases/Enlargement/Enlargement.pamhyr differ