Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds version to bundles #668

Merged
merged 2 commits into from
Oct 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions neuroscout/tasks/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from .utils import update_record, write_jsons, write_tarball, dump_analysis


MIN_CLI_VERSION = '0.3'

def compile(flask_app, hash_id, run_ids=None, build=False):
""" Compile analysis_id. Validate analysis using pybids and
writout analysis bundle
Expand Down Expand Up @@ -50,6 +52,7 @@ def compile(flask_app, hash_id, run_ids=None, build=False):
resources['validation_hash'] = Hashids(
flask_app.config['SECONDARY_HASH_SALT'],
min_length=10).encode(a_id)
resources['version_required'] = MIN_CLI_VERSION

# Write out JSON files to tmp_dir
bundle_paths += write_jsons([
Expand Down