- more transforms

This commit is contained in:
w.pomp committed 2026-09-15 16:13:51 +02:00
1 parent 4074770fd3
commit 6041cda475
18 files changed
+3383 -2794

No files matched your search

+5 -5
View File
@@ -91,7 +91,7 @@ pub struct View<D: Dimension, R: Reader = DynReader> {
operations: IndexMap<Axis, Operation>,
dimensionality: PhantomData<D>,
#[cfg(feature = "transforms")]
transforms: Transforms,
pub(crate) transforms: Transforms,
}
impl<D, R> Hash for View<D, R>
@@ -123,7 +123,7 @@ impl<D: Dimension, R: Reader> View<D, R> {
}
}
#[allow(dead_code)]
#[expect(dead_code)]
pub(crate) fn new_with_axes(reader: R, axes: Vec<Axis>) -> Result<Self, Error> {
let mut slice = Vec::new();
let shape = reader.shape();
@@ -251,7 +251,7 @@ impl<D: Dimension, R: Reader> View<D, R> {
operations: self.operations,
dimensionality: PhantomData,
#[cfg(feature = "transforms")]
transforms: Transforms::default(),
transforms: self.transforms,
})
} else {
Err(Error::DimensionalityMismatch(d, self.ndim()))
@@ -264,7 +264,7 @@ impl<D: Dimension, R: Reader> View<D, R> {
operations: self.operations,
dimensionality: PhantomData,
#[cfg(feature = "transforms")]
transforms: Transforms::default(),
transforms: self.transforms,
})
}
}
@@ -274,7 +274,7 @@ impl<D: Dimension, R: Reader> View<D, R> {
&self.axes
}
#[allow(dead_code)]
#[expect(dead_code)]
pub(crate) fn get_operations(&self) -> &IndexMap<Axis, Operation> {
&self.operations
}