Skip to content

v0.6.0

Compare
Choose a tag to compare
@Enet4 Enet4 released this 17 Oct 10:50

Breaking changes

  • The byte order of the data is now embedded into NiftiHeader (endianness attribute). Constructors return only the header instead of a tuple. #14
  • NiftiError type contains two new variants: IncompatibleLength and InvalidCode.
  • Some methods were renamed to comply with naming guidelines. (#17) Deprecated function calls in your code must be updated before 0.7.0, when they will be removed.
    • InMemNiftiVolume::to_raw_data is deprecated in favour of into_raw_data
    • InMemNiftiVolume::get_raw_data and InMemNiftiVolume::get_raw_data_mut are deprecated, use InMemNiftiVolume::raw_data and InMemNiftiVolume::raw_data_mut instead
    • IntoNdarray::to_ndarray is deprecated. Consumers should only call and implement into_ndarray instead.
  • Validated enum types in the typedef module now have their methods called by value (self) rather than by reference (&self). #18

New

  • Volume constructor InMemNiftiVolume::from_raw_data. #16 (by @nilgoyette)
  • NiftiHeader getters for retrieving validated header information intent, data_type, slice_order, sform, qform and xyzt_units #18

Other changes

  • Optimized memory representation for types in the typedef module (they only need as much as the sizes according to the original NIfTI-1 header).
  • Optimize volume name resolution from header file #20
  • Updated derive_builder dependency #13