Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Update C-PAC Gear to c-pac version 1.6.0#6

Open
joshicola wants to merge 5 commits intomasterfrom
bids-cpac-dev
Open

Update C-PAC Gear to c-pac version 1.6.0#6
joshicola wants to merge 5 commits intomasterfrom
bids-cpac-dev

Conversation

@joshicola
Copy link
Contributor

Updated the Dockerfile to pull Cpac v1.6.0.

Successfully ran under these conditions.

Consider updating with gear-toolkit and methods, when it is available.

@joshicola joshicola self-assigned this Jan 30, 2020
Copy link

@AndysWorth AndysWorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review was quite painless, thanks!

Copy link

@AndysWorth AndysWorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


# Note the Maintainer
MAINTAINER Flywheel <support@flywheel.io>
LABEL MAINTAINER "Flywheel <support@flywheel.io>"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, this is new to me, so I looked it up. Apparently it should be LABEL maintainer="support@flywheel.io".
See https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
and also https://medium.com/@chamilad/lets-make-your-docker-image-better-than-90-of-existing-ones-8b1e5de950d. Apparently there is a lot more we can add here.

RUN pip3 install --upgrade pip && \
pip3.5 install \
flywheel_sdk==8.2.0 \
flywheel_sdk==10.7.0 \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10.7.4 happened 3 days ago. I keep this link handy: https://gitlab.com/flywheel-io/product/backend/core/-/tags

pip3.5 install \
flywheel_sdk==8.2.0 \
flywheel_sdk==10.7.0 \
flywheel_bids \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flywheel_sdk==10.7.0 \
flywheel_bids \
flywheel-gear-toolkit \
bids-validator \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bids.run_validation(context)
try:
# To download and validate BIDS
context.download_session_bids(target_dir=context.work_dir/'bids')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I switched from using download_session_bids() to download_project_bids() because the project version also downloads "dataset_description.json" and the session version didn't. Has that changed? I guess what I'm asking is, does the validator accept it? I assume it must. I guess I need to look at this again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants