Skip to content

Commit

Permalink
Directory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Jun 30, 2022
1 parent dac65f9 commit 019d1cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/UQpy/run_model/model_execution/ThirdPartyModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def create_model_execution_directory(self, model_dir, model_files):

os.chdir(self.model_dir)

# self.logger.info("\nUQpy: The following directory has been created for model evaluations: \n" + self.model_dir)
self.logger.info("\nUQpy: The following directory has been created for model evaluations: \n" + self.model_dir)
# Copy files from the model list to model run directory
for file_name in model_files:
full_file_name = os.path.join(self.parent_dir, file_name)
Expand All @@ -144,8 +144,10 @@ def create_model_execution_directory(self, model_dir, model_files):
else:
new_dir_name = os.path.join(self.model_dir, os.path.basename(full_file_name))
shutil.copytree(full_file_name, new_dir_name)
# self.logger.info("\nUQpy: The model files have been copied to the following directory for evaluation: \n"
# + self.model_dir)
self.logger.info("\nUQpy: The model files have been copied to the following directory for evaluation: \n"
+ self.model_dir)
parent_dir = os.path.dirname(self.model_dir)
os.chdir(parent_dir)

def create_model_files_list(self, model_dir):
model_files = []
Expand Down

0 comments on commit 019d1cb

Please sign in to comment.