ContextLab / ContextLab/supereeg

get_slice for nifti subclass for 4D to 3D image

Open
#190 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
38
Forks
19
PR merge metrics
No merged PRs in 30d

Description

for next release, change nifti get_slice method to something like this:

`def get_slice(self, index):`
` if len(self.shape)>3:`
` if self.shape[3]==1:`
` return nib.Nifti1Image(header=self.header, dataobj=np.squeeze(self.get_data()), affine=self.affine)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.