Skip to content

Commit

Permalink
Update the function name to reflect outputs order
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed May 5, 2024
1 parent d6f04de commit 83c7cf4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub use libusb1_sys;
pub use neuromorphic_types as types;
pub use rusb;

pub fn event_loop_and_flag(
pub fn flag_and_event_loop(
) -> Result<(Flag<Error, usb::Overflow>, std::sync::Arc<usb::EventLoop>), usb::Error> {
let flag = Flag::new();
let event_loop = std::sync::Arc::new(usb::EventLoop::new(
Expand Down
2 changes: 1 addition & 1 deletion drivers/tests/evk4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use neuromorphic_drivers::UsbDevice;

#[test]
fn read() -> Result<(), neuromorphic_drivers::Error> {
let (flag, event_loop) = neuromorphic_drivers::event_loop_and_flag()?;
let (flag, event_loop) = neuromorphic_drivers::flag_and_event_loop()?;
let device = neuromorphic_drivers::prophesee_evk4::open(
&None,
neuromorphic_drivers::prophesee_evk4::DEFAULT_CONFIGURATION,
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
{name = "International Centre for Neuromorphic Systems"},
{name = "Alexandre Marcireau"},
]
version = "0.13.3"
version = "0.14.0"
requires-python = ">=3.8"
dependencies = ["numpy>=1.24"]

Expand Down
2 changes: 1 addition & 1 deletion python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Device {
usb_configuration: Option<&[u8]>,
iterator_timeout: Option<f64>,
) -> pyo3::PyResult<Self> {
let (flag, event_loop) = neuromorphic_drivers_rs::event_loop_and_flag()
let (flag, event_loop) = neuromorphic_drivers_rs::flag_and_event_loop()
.map_err(|error| pyo3::exceptions::PyRuntimeError::new_err(format!("{error}")))?;
let device = neuromorphic_drivers_rs::open(
serial,
Expand Down

0 comments on commit 83c7cf4

Please sign in to comment.