Skip to content

Commit 85d0cd3

Browse files
authored
Merge pull request #82 from neuroscout/versions
Log fmriprep and cli versions with upload
2 parents 6b0fd81 + 9e6b371 commit 85d0cd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyns/models/analysis.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,16 @@ def plot_report(self, id, run_id=None, plot_type='design_matrix_plot',
315315

316316
def upload_neurovault(self, id, validation_hash, subject_paths=None,
317317
group_paths=None, collection_id=None, force=False,
318+
cli_version=None, fmriprep_version=None,
318319
n_subjects=None):
319320
""" Submit analysis for report generation
320321
:param str id: Analysis hash_id.
321322
:param str validation_hash: Validation hash string.
322323
:param list(str) subject_paths: List of image paths.
323324
:param list(str) group_paths: List of image paths.
324325
:param bool force: Force upload with unique timestamped name.
326+
:param str: neuroscout-cli version at runtime
327+
:param str: fmriprep version at runtime
325328
:param int n_subjects: Number of subjects in analysis.
326329
:return: client response object
327330
"""
@@ -342,6 +345,7 @@ def _ts_first(paths):
342345
req = self.post(
343346
id=id, sub_route='upload', files=files, level='GROUP',
344347
validation_hash=validation_hash, force=force,
348+
fmriprep_version=fmriprep_version, cli_version=cli_version,
345349
n_subjects=n_subjects, collection_id=collection_id)
346350
if collection_id is None:
347351
collection_id = req['collection_id']
@@ -353,6 +357,7 @@ def _ts_first(paths):
353357
req = self.post(
354358
id=id, sub_route='upload', files=files, level='SUBJECT',
355359
validation_hash=validation_hash, force=force,
360+
fmriprep_version=fmriprep_version, cli_version=cli_version,
356361
collection_id=collection_id)
357362
if collection_id is None:
358363
collection_id = req['collection_id']

0 commit comments

Comments
 (0)