Browse Source

Use eyre within dora-rerun

tags/0.3.8-rc
Xavier Tao 1 year ago
parent
commit
f7dfcaa70c
3 changed files with 4 additions and 3 deletions
  1. +2
    -2
      examples/camera/dataflow.yml
  2. +1
    -0
      node-hub/dora-rerun/Cargo.toml
  3. +1
    -1
      node-hub/dora-rerun/src/lib.rs

+ 2
- 2
examples/camera/dataflow.yml View File

@@ -1,6 +1,6 @@
nodes:
- id: camera
build: pip install ../../node-hub/opencv-video-capture
build: pip install -e ../../node-hub/opencv-video-capture
path: opencv-video-capture
inputs:
tick: dora/timer/millis/20
@@ -12,7 +12,7 @@ nodes:
IMAGE_HEIGHT: 480

- id: plot
build: pip install ../../node-hub/opencv-plot
build: pip install -e ../../node-hub/opencv-plot
path: opencv-plot
inputs:
image:


+ 1
- 0
node-hub/dora-rerun/Cargo.toml View File

@@ -23,6 +23,7 @@ k = "0.32"
pyo3 = { workspace = true, features = [
"extension-module",
"abi3",
"eyre"
], optional = true }




+ 1
- 1
node-hub/dora-rerun/src/lib.rs View File

@@ -255,7 +255,7 @@ use pyo3::{
#[pyfunction]
fn py_main(_py: Python) -> PyResult<()> {
pyo3::prepare_freethreaded_python();
lib_main().map_err(|e| pyo3::exceptions::PyException::new_err(e.to_string()))
lib_main()
}

/// A Python module implemented in Rust.


Loading…
Cancel
Save