Skip to content

Commit

Permalink
contianer_id -> image_id
Browse files Browse the repository at this point in the history
  • Loading branch information
hlpureboy committed Nov 24, 2021
1 parent 7c81ad2 commit 4ac5306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class fMRI_Prep_Job:

# freesurfer_license
freesurfer_license = "/share/user_data/public/fanq_ocd/license.txt"
# contianer id
contianer_id = "d7235efbbd3c"
# image id
image_id = "d7235efbbd3c"
# fmriprep cmd
cmd ="docker run -it --rm -v {bids_data_path}:/data -v {freesurfer_license}:/opt/freesurfer/license.txt -v {bids_output_path}:/out -v {fmri_work}:/work {contianer_id} /data /out --skip_bids_validation --ignore slicetiming fieldmaps -w /work --omp-nthreads {thread} --fs-no-reconall --resource-monitor participant --participant-label {subject_ids}"
cmd ="docker run -it --rm -v {bids_data_path}:/data -v {freesurfer_license}:/opt/freesurfer/license.txt -v {bids_output_path}:/out -v {fmri_work}:/work {image_id} /data /out --skip_bids_validation --ignore slicetiming fieldmaps -w /work --omp-nthreads {thread} --fs-no-reconall --resource-monitor participant --participant-label {subject_ids}"

class Result:
path = "./result/"
Expand Down
2 changes: 1 addition & 1 deletion scripts/fmriprep_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _fmriprep_cmd(args):
"""
bids_data_path,freesurfer_license,bids_output_path,fmri_work,subject_ids,thread = args
cmd = fMRI_Prep_Job.cmd
cmd = cmd.format(bids_data_path=bids_data_path,freesurfer_license=freesurfer_license,bids_output_path=bids_output_path,contianer_id=fMRI_Prep_Job.contianer_id,fmri_work=fmri_work,subject_ids=" ".join(subject_ids),thread=thread)
cmd = cmd.format(bids_data_path=bids_data_path,freesurfer_license=freesurfer_license,bids_output_path=bids_output_path,image_id=fMRI_Prep_Job.image_id,fmri_work=fmri_work,subject_ids=" ".join(subject_ids),thread=thread)
logging.info(cmd)
wrap_log = os.popen(cmd)
for log in wrap_log:pass
Expand Down

0 comments on commit 4ac5306

Please sign in to comment.