Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/notebooks/pet_motion_estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"from os import getenv\n",
"from pathlib import Path\n",
"\n",
"from nifreeze.data.pet import PET\n",
"from nifreeze.data.pet import from_nii\n",
"\n",
"# Install test data from gin.g-node.org:\n",
"# $ datalad install -g https://gin.g-node.org/nipreps-data/tests-nifreeze.git\n",
Expand All @@ -29,7 +29,7 @@
" DATA_PATH / \"pet_data\" / \"sub-02\" / \"ses-baseline\" / \"pet\" / \"sub-02_ses-baseline_pet.json\"\n",
")\n",
"\n",
"pet_dataset = PET.load(pet_file, json_file)"
"pet_dataset = from_nii(pet_file, temporal_file=json_file)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
license = "Apache-2.0"
requires-python = ">=3.10"
dependencies = [
"attrs>=20.1.0",
"attrs>=24.1.0",
"dipy>=1.5.0",
"joblib",
"nipype>=1.5.1,<2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/nifreeze/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def load(
from nifreeze.data.dmri import from_nii as dmri_from_nii

return dmri_from_nii(filename, brainmask_file=brainmask_file, **kwargs)
elif {"frame_time", "frame_duration"} & set(kwargs):
elif {"temporal_file"} & set(kwargs):
from nifreeze.data.pet import from_nii as pet_from_nii

return pet_from_nii(filename, brainmask_file=brainmask_file, **kwargs)
Expand Down
Loading
Loading