- fixing PyShape

This commit is contained in:
w.pomp
2026-07-22 16:13:54 +02:00
parent 0ed70edd3e
commit 1471ec00af
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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*"]
+6 -1
View File
@@ -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::<String>()
}
}
pub(crate) fn ndbioimage_file() -> PathBuf {