Skip to content

Commit

Permalink
Merge pull request #82 from neuroscout/versions
Browse files Browse the repository at this point in the history
Log fmriprep and cli versions with upload
  • Loading branch information
adelavega committed Oct 28, 2020
2 parents 6b0fd81 + 9e6b371 commit 85d0cd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyns/models/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,16 @@ def plot_report(self, id, run_id=None, plot_type='design_matrix_plot',

def upload_neurovault(self, id, validation_hash, subject_paths=None,
group_paths=None, collection_id=None, force=False,
cli_version=None, fmriprep_version=None,
n_subjects=None):
""" Submit analysis for report generation
:param str id: Analysis hash_id.
:param str validation_hash: Validation hash string.
:param list(str) subject_paths: List of image paths.
:param list(str) group_paths: List of image paths.
:param bool force: Force upload with unique timestamped name.
:param str: neuroscout-cli version at runtime
:param str: fmriprep version at runtime
:param int n_subjects: Number of subjects in analysis.
:return: client response object
"""
Expand All @@ -342,6 +345,7 @@ def _ts_first(paths):
req = self.post(
id=id, sub_route='upload', files=files, level='GROUP',
validation_hash=validation_hash, force=force,
fmriprep_version=fmriprep_version, cli_version=cli_version,
n_subjects=n_subjects, collection_id=collection_id)
if collection_id is None:
collection_id = req['collection_id']
Expand All @@ -353,6 +357,7 @@ def _ts_first(paths):
req = self.post(
id=id, sub_route='upload', files=files, level='SUBJECT',
validation_hash=validation_hash, force=force,
fmriprep_version=fmriprep_version, cli_version=cli_version,
collection_id=collection_id)
if collection_id is None:
collection_id = req['collection_id']
Expand Down

0 comments on commit 85d0cd3

Please sign in to comment.