diff --git a/pyproject.toml b/pyproject.toml index 77773bd..9c0ee6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ ndbioimage_generate_stub = "ndbioimage:ndbioimage_generate_stub" [tool.maturin] python-source = "py" -features = ["python", "bioformats_java", " tiffwrite", "movie"] +features = ["python", "bioformats_java", "gpl-formats", "tiff", "tiffseq", "tiffwrite", "movie"] no-default-features = true module-name = "ndbioimage.ndbioimage_rs" include = ["py/ndbioimage/jassets/j4rs*", "py/ndbioimage/deps/libj4rs*"] diff --git a/src/py.rs b/src/py.rs index 6364815..8610858 100644 --- a/src/py.rs +++ b/src/py.rs @@ -1917,7 +1917,7 @@ impl PyShape { fn __repr__(&self) -> String { format!( - "PyShape({}, {}, {}, {}, {})", + "Shape({}, {}, {}, {}, {})", self.inner.c, self.inner.z, self.inner.t, self.inner.x, self.inner.y ) } @@ -2011,6 +2011,11 @@ impl PyShape { self.inner.x, ] } + + #[getter] + fn axes(&self) -> String { + self.inner.order.iter().map(|axis| format!("{}", axis)).collect::() + } } pub(crate) fn ndbioimage_file() -> PathBuf {