From adb3d699b76c164386cd47afc22df833da99189f Mon Sep 17 00:00:00 2001 From: Werner Van Geit Date: Tue, 30 Jul 2024 15:11:40 +0200 Subject: [PATCH] Copy all input files to output --- docker_scripts/dakota-start.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker_scripts/dakota-start.py b/docker_scripts/dakota-start.py index 575a81d..758acda 100755 --- a/docker_scripts/dakota-start.py +++ b/docker_scripts/dakota-start.py @@ -11,7 +11,6 @@ import uuid import dakota.environment as dakenv -import numpy as np from osparc_filecomms import handshakers logging.basicConfig( @@ -107,6 +106,13 @@ def start(self): time.sleep(POLLING_TIME) dakota_conf = self.dakota_conf_path.read_text() + shutil.copytree( + self.input0_dir_path, + self.output0_dir_path, + dirs_exist_ok=True, + ignore=shutil.ignore_patterns("handshake.json"), + ) + self.start_dakota(dakota_conf, self.output0_dir_path) def model_callback(self, dak_inputs):