Skip to content

Commit

Permalink
Don't change working directory to original dir when resuming run.
Browse files Browse the repository at this point in the history
If we change the working directory to the one stored in the state file,
we'll continue to update the trees.zip at that location. This is
undesireable, as it means we can't copy the run directory to another
location and run from there (e.g., when testing a code change, or moving
to another filesystem location). Now, just trust that the user changed
to the desired working directory before invoking evolve.py.
  • Loading branch information
jwintersinger committed Feb 11, 2017
1 parent fff08c9 commit 851c070
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion evolve.py
Expand Up @@ -140,7 +140,6 @@ def resume_existing_run(state_manager, backup_manager, safe_to_exit, run_succeed
tree_writer = TreeWriter(resume_run = True)

set_state(state['rand_state']) # Restore NumPy's RNG state.
os.chdir(state['working_directory'])
codes, n_ssms, n_cnvs, cnv_logical_physical_mapping = load_data(state['ssm_file'], state['cnv_file'])
NTPS = len(codes[0].a) # number of samples / time point

Expand Down

0 comments on commit 851c070

Please sign in to comment.