Skip to content

Commit

Permalink
Fixed an issue with the source_outputs_dir check.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiavasis committed Jan 28, 2021
1 parent 58a922a commit 0583f19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 10 additions & 5 deletions CPAC/pipeline/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,14 +1232,19 @@ def initiate_rpool(wf, cfg, data_paths):

# grab already-processed data from the output directory
if cfg.pipeline_setup['output_directory']['pull_source_once']:
if not os.listdir(cfg.pipeline_setup['output_directory']['path']):
if cfg.pipeline_setup['output_directory']['source_outputs_dir']:
out_dir = cfg.pipeline_setup['output_directory'][
'source_outputs_dir']
if os.path.isdir(cfg.pipeline_setup['output_directory']['path']):
if not os.listdir(cfg.pipeline_setup['output_directory']['path']):
if cfg.pipeline_setup['output_directory']['source_outputs_dir']:
out_dir = cfg.pipeline_setup['output_directory'][
'source_outputs_dir']
else:
out_dir = cfg.pipeline_setup['output_directory']['path']
else:
out_dir = cfg.pipeline_setup['output_directory']['path']
else:
out_dir = cfg.pipeline_setup['output_directory']['path']
if cfg.pipeline_setup['output_directory']['source_outputs_dir']:
out_dir = cfg.pipeline_setup['output_directory'][
'source_outputs_dir']
else:
if cfg.pipeline_setup['output_directory']['source_outputs_dir']:
out_dir = cfg.pipeline_setup['output_directory']['source_outputs_dir']
Expand Down
2 changes: 0 additions & 2 deletions dev/docker_data/default_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,6 @@ voxel_mirrored_homotopic_connectivity:
network_centrality:

# Calculate Degree, Eigenvector Centrality, or Functional Connectivity Density.
# this is a fork point
# run: [On, Off] - this will run both and fork the pipeline
run: [On]

# Maximum amount of RAM (in GB) to be used when calculating Degree Centrality.
Expand Down

0 comments on commit 0583f19

Please sign in to comment.