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
{{ message }}
Repository navigation
NibabelWriter fails on 2D channel-less arrays with no target affine (regression in 1.6.0) #9166
NibabelWriter.set_metadata() raises TypeError: '>=' not supported between instances of 'NoneType' and 'int' for a 2D array written with channel_dim=None when no original_affine / spatial_shape is given. The same call works for 3D arrays, and it worked for 2D arrays in 1.5.1.
spatial_resample now derives the spatial rank from get_spatial_ndim(img) (the MetaTensor.spatial_ndim path). For this input that gives rank 1, so the spatial_size is None and spatial_rank > 1 auto-size branch is skipped. spatial_size stays None and then reaches fall_back_tuple(..., lambda x: x >= 0).
Activity