Skip to content

Commit

Permalink
Fix bug of using a relative failed_logs_dir path on a cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
emitra17 committed Jan 8, 2019
1 parent 677805d commit c809a5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pybnf/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def _copy_log_files(self, failed_logs_dir):
def run_simulation(self, debug=False, failed_logs_dir=''):
"""Runs the simulation and reads in the result"""

# Force absolute path for failed_logs_dir
if len(failed_logs_dir) > 0 and failed_logs_dir[0] != '/':
failed_logs_dir = self.home_dir + '/' + failed_logs_dir

# The check here is in case dask decides to run the same job twice, both of them can complete.
made_folder = False
failures = 0
Expand Down

0 comments on commit c809a5d

Please sign in to comment.