Skip to content

Commit c809a5d

Browse files
committed
Fix bug of using a relative failed_logs_dir path on a cluster
1 parent 677805d commit c809a5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pybnf/algorithms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ def _copy_log_files(self, failed_logs_dir):
237237
def run_simulation(self, debug=False, failed_logs_dir=''):
238238
"""Runs the simulation and reads in the result"""
239239

240+
# Force absolute path for failed_logs_dir
241+
if len(failed_logs_dir) > 0 and failed_logs_dir[0] != '/':
242+
failed_logs_dir = self.home_dir + '/' + failed_logs_dir
243+
240244
# The check here is in case dask decides to run the same job twice, both of them can complete.
241245
made_folder = False
242246
failures = 0

0 commit comments

Comments
 (0)