Skip to content

Commit

Permalink
fix: new circle file w/ version test
Browse files Browse the repository at this point in the history
  • Loading branch information
akeshavan committed Sep 18, 2017
1 parent 17a2100 commit 5d42e2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ FROM nipy/mindboggle
MAINTAINER Mindboggle <anishakeshavan@gmail.com>
RUN mkdir ~/code
COPY run.py ~/code/run.py
COPY version ~/code/version
ENTRYPOINT ["~/code/run.py"]
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:

test:
override:
- docker run -ti --rm --read-only -v /tmp:/tmp -v /var/tmp:/var/tmp -v ${HOME}/data/ds114_test1:/home/jovyan/work/bids_dataset -v ${HOME}/outputs1:/home/jovyan/work/bids_dataset/outputs bids/${CIRCLE_PROJECT_REPONAME,,} /home/jovyan/work/bids_dataset /home/jovyan/work/bids_dataset/outputs participant --participant_label 01 :
- docker run -ti --rm --read-only -v /tmp:/tmp -v /var/tmp:/var/tmp -v ${HOME}/data/ds114_test1:/home/jovyan/work/bids_dataset -v ${HOME}/outputs1:/home/jovyan/work/bids_dataset/outputs bids/${CIRCLE_PROJECT_REPONAME,,} --version :
timeout: 21600

deployment:
Expand Down
5 changes: 5 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from glob import glob
from nipype.utils.filemanip import split_filename

__version__ = open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'version')).read()

def get_t1_images(basedir, subject_label):
print(join(basedir,subject_label, "anat", "sub-%s_T1w.nii.gz" % (subject_label)))
print(join(basedir,subject_label, "anat", "sub-%s_ses-*_T1w.nii.gz" % (subject_label)))
Expand Down Expand Up @@ -42,6 +44,9 @@ def run_mindboggle(image, subject_id, output_dir):
'participants can be specified with a space separated list.',
nargs="+")

parser.add_argument('-v', '--version', action='version',
version='BIDS-App Mindboggle version {}'.format(__version__))

args = parser.parse_args()

subjects_to_analyze = []
Expand Down

0 comments on commit 5d42e2f

Please sign in to comment.