Repository navigation
bifti (Python) 0.2.0
·
9 commits
to main
since this release
Added
max_substepskeyword onNumpyPhantom.load,NumpyPhantom.load_from_configand
load_tissue(default 8): the cap on quadrature samples per axis used when an oblique
reslice_tois resampled, previously only settable throughResampler.build.Resampler.weight_sum/resample_weightedaccept a(C, X, Y, Z)weight, one per
channel, so a 4-D phantom NIfTI (one density per tissue) goes through a single call
(#23).ObliqueResampleWarningandResampler.capped.
Changed
- Resampling onto an oblique grid now emits an
ObliqueResampleWarning: the result is
averaged by approximate midpoint quadrature instead of the exact box average used for
axis-aligned grids. The warning says whenmax_substepsleaves the quadrature
under-sampled, so the result may alias
(#23). - A weight whose shape matches neither the source grid nor
(C, *source grid)now raises
ValueErrorinstead of failing inside the contraction.