Input Data-nifti vs. npy file?


I am just starting to use the Event segmentation tutorial and am having a hard time understanding the contents of the “0.Load Angular Gyrus data” section.

If I wanted to upload a nifti file of event encoding data and mask-also in nifti format (rather than a .npy file) of a single subject to feed into “1. Finding event boundaries during perception” how might I go about this?

I have tried loading a nifti with nib.load and converting to a numpy array with np.array() but when I pass this into the next portion in place of the variable “movie_group” I receive an error: ValueError: m has more than 2 dimensions

Is this an issue with my data or am I handling the input data incorrectly?

Thank you so much in advance.