From 3df40e3f19ee4ebd01ebd82ce7266093507dd8e2 Mon Sep 17 00:00:00 2001 From: Alejandro de la Vega Date: Thu, 5 Oct 2023 15:10:44 -0500 Subject: [PATCH] Fix fetch utils --- pyns/fetch_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyns/fetch_utils.py b/pyns/fetch_utils.py index 4253256..2cdaffd 100644 --- a/pyns/fetch_utils.py +++ b/pyns/fetch_utils.py @@ -7,7 +7,7 @@ try: from bids.variables import SparseRunVariable, BIDSRunVariableCollection from bids.variables.entities import RunInfo - from bids.layout import BIDSLayout + from bids.layout import BIDSLayout, BIDSLayoutIndexer except ImportError: SparseRunVariable = None BIDSRunVariableCollection = None @@ -90,7 +90,7 @@ def fetch_predictors(predictor_names, dataset_name, return_type='df', rescale=Fa Scale(collection, predictor_names) if resample: - collection = collection.to_dense().resample('TR') + collection = collection.to_dense('TR') if return_type == 'df': collection = collection.to_df() @@ -177,7 +177,7 @@ def install_dataset(dataset_dir, preproc_address, no_get=False): return preproc_dir -def fetch_images(dataset_name, data_dir, no_get=False, datalad_jobs=-1, +def fetch_images(dataset_name, data_dir, no_get=False, datalad_jobs='auto', preproc_address=None, **kwargs): """ Fetch preprocessed images from a Neuroscout dataset. Installs dataset using DataLad if not already installed.