Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing if github actions are fixed #90

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions benches/comet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fn trail(c: &mut Criterion) {
let mut driver = comet::build_driver();
driver.mount(sled);

let simulated_duration = 30.0;
let simulated_hz = 144.0;
let simulated_duration = 15.0;
let simulated_hz = 60.0;
let total_steps = (simulated_duration * simulated_hz) as usize;
let timestep = Duration::from_secs_f32(1.0 / simulated_hz);
let mut r = 0;
Expand All @@ -34,9 +34,9 @@ criterion_group! {
name = benches;
config = Criterion::default()
.significance_level(0.05)
.sample_size(50)
.warm_up_time(Duration::from_secs_f32(10.0))
.measurement_time(Duration::from_secs_f32(25.0));
.sample_size(30)
.warm_up_time(Duration::from_secs_f32(5.0))
.measurement_time(Duration::from_secs_f32(20.0));
targets = trail
}
criterion_main!(benches);
10 changes: 5 additions & 5 deletions benches/ripples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fn ripples(c: &mut Criterion) {
let mut driver = ripples::build_driver();
driver.mount(sled);

let simulated_duration = 30.0;
let simulated_hz = 144.0;
let simulated_duration = 15.0;
let simulated_hz = 60.0;
let total_steps = (simulated_duration * simulated_hz) as usize;
let timestep = Duration::from_secs_f32(1.0 / simulated_hz);
let mut r = 0;
Expand All @@ -33,9 +33,9 @@ criterion_group! {
name = benches;
config = Criterion::default()
.significance_level(0.05)
.sample_size(50)
.warm_up_time(Duration::from_secs_f32(10.0))
.measurement_time(Duration::from_secs_f32(25.0));
.sample_size(30)
.warm_up_time(Duration::from_secs_f32(5.0))
.measurement_time(Duration::from_secs_f32(20.0));
targets = ripples
}
criterion_main!(benches);
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use alloc::vec::Vec;

use crate::error::SledError;
use core::str::Lines;
use glam::Vec2;
use crate::Vec2;
use smallvec::SmallVec;

#[cfg(not(feature = "std"))]
Expand Down
2 changes: 1 addition & 1 deletion src/led.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::color::Rgb;
use glam::Vec2;
use crate::Vec2;

#[cfg(not(feature = "std"))]
use num_traits::float::Float as _;
Expand Down
2 changes: 1 addition & 1 deletion src/spatial_led/directional.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use alloc::collections::BTreeSet;

use crate::{color::Rgb, led::Led, Filter, Sled};
use glam::Vec2;
use crate::Vec2;
use smallvec::SmallVec;

/// # directional read and write methods
Expand Down
3 changes: 1 addition & 2 deletions src/spatial_led/maps_and_filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ use crate::{
color::Rgb,
led::Led,
spatial_led::{Filter, Sled},
Vec2,
};

use glam::Vec2;

/// Maps
impl Sled {
pub fn map(&mut self, led_to_color_map: impl Fn(&Led) -> Rgb) {
Expand Down
2 changes: 1 addition & 1 deletion src/spatial_led/positional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use crate::{
color::Rgb,
led::Led,
spatial_led::{Filter, Sled},
Vec2,
};

use glam::Vec2;
use smallvec::{smallvec, SmallVec};

#[cfg(not(feature = "std"))]
Expand Down
Loading