diff --git a/Cargo.toml b/Cargo.toml index 77bde3b..2ceb56a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,8 @@ name = "lazrs" crate-type = ["cdylib"] [dependencies.laz] -version = "0.5.2" +#version = "0.5.2" +git = "https://github.com/tmontaigu/laz-rs" features = ["parallel"] [dependencies.pyo3] diff --git a/src/lib.rs b/src/lib.rs index a6d9650..b02864f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,6 +151,10 @@ impl ParLasZipDecompressor { .map_err(into_py_err)?; Ok(()) } + + pub fn seek(&mut self, point_idx: u64) -> PyResult<()> { + self.decompressor.seek(point_idx).map_err(into_py_err) + } } #[pyclass]