There is a newer version of this record available.

Software Open Access

cosanlab/nltools: 0.4.6

Luke Chang; Sam; Eshin Jolly; Jin Hyun Cheong; Anton Burnashev; Andy Chen; Marissa Clark; Seth Frey; Paxton Fitzpatrick

Changes Fixes
  • Fixed warnings from onsets_to_dm as error-checking wasn't quite right
  • Fixed deprecated nilearn warnings
  • Fixed deprecated nibabel .get_affine() -> .affine
New

Brain_Data('brain.h5')

User loads h5 that contains mask but also sets mask argument. Now mask value takes precedence over whatever mask is in h5 so we issue a warning to the user letting them know on load

Brain_Data('brain.h5', mask='path/to/nifti/mask.nii.gz')

UserWarning(...)

User loads h5 that does NOT contain a mask and doesnt set the mask argument so the default MNI mask is used, similar to nifti files This is an implicit fallback just like with niftis

Brain_Data('brain_nomask.h5')

User loads h5 that does NOT contain mask but also sets mask argument Mask value is used to learn transformation like niftis No need to warn them about anything

Brain_Data('brain_nomask.h5', mask='path/to/nifti/mask.nii.gz') ```

Files (3.4 MB)
Name Size
cosanlab/nltools-v0.4.6.zip
md5:fb61370e2a5a57f6298149b2cb5ce129
3.4 MB Download
908
47
views
downloads
All versions This version
Views 9087
Downloads 470
Data volume 158.4 MB0 Bytes
Unique views 7677
Unique downloads 360

Share

Cite as