Skip to content

Commit

Permalink
Fix fetch utils
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Oct 5, 2023
1 parent f3877a7 commit 3df40e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyns/fetch_utils.py
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3df40e3

Please sign in to comment.