- fixing PyShape
This commit is contained in:
+1
-1
@@ -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*"]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user