You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recent change of code for detecting unique values uses image shape for sampling random integers. This will throw an error when dealing with single channel 4D volumes since it would try to sample from a range of 0 to 0.
Way to reproduce
from dipy.viz.horizon.app import horizon
from dipy.io.image import load_nifti
image, affine = load_nifti(some_file_path_with_single_channel)
horizon(images=[(image, affine)])
The text was updated successfully, but these errors were encountered:
Description
The recent change of code for detecting unique values uses image shape for sampling random integers. This will throw an error when dealing with single channel 4D volumes since it would try to sample from a range of 0 to 0.
Way to reproduce
The text was updated successfully, but these errors were encountered: