Skip to content

Commit

Permalink
Keep sim files when error occurs (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Letellier-Duchesne committed Feb 1, 2022
1 parent 9e677dd commit 818f0ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archetypal/eplus_interface/energy_plus.py
Expand Up @@ -270,7 +270,7 @@ def failure_callback(self):
with open(error_filename, "r") as stderr:
stderr_r = stderr.read()
if self.idf.keep_data_err:
failed_dir = self.idf.simulation_dir.mkdir_p() / "failed"
failed_dir = self.idf.simulation_dir.mkdir_p()
try:
failed_dir.rmtree_p()
except PermissionError as e:
Expand Down
2 changes: 1 addition & 1 deletion archetypal/idfclass/idf.py
Expand Up @@ -194,7 +194,7 @@ def __init__(
output_suffix="L",
epmacro=False,
keep_data=True,
keep_data_err=False,
keep_data_err=True,
position=0,
name=None,
output_directory=None,
Expand Down

0 comments on commit 818f0ed

Please sign in to comment.