net rep copy fixed

This commit is contained in:
Youcef AOUAD committed 2024-07-11 10:55:54 +02:00
1 parent ff1bc26d2e
commit 9680202b4c
2 files changed
+8

No files matched your search

+8
View File
@@ -20,6 +20,8 @@ import os
import logging import logging
import numpy as np import numpy as np
import shutil
from tools import ( from tools import (
trace, timer, logger_exception, trace, timer, logger_exception,
timestamp_to_old_pamhyr_date, timestamp_to_old_pamhyr_date,
@@ -131,6 +133,12 @@ class AdisTS(CommandLineSolver):
self._export_REP_additional_lines(study, f) 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 @timer
def export(self, study, repertory, qlog=None): def export(self, study, repertory, qlog=None):
self._study = study self._study = study
Binary file not shown.