style(simulation): gate bounce — cargo fmt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 16:53:41 +02:00
co-authored by Claude Fable 5
parent 497f9dc94d
commit 71f70f035e
6 changed files with 23 additions and 28 deletions
+7 -10
View File
@@ -2074,9 +2074,8 @@ pub fn derive_orbital_at_metres(
let (wdx, wdy) = coast_invention::coast_warp_px(seed.seed(), world_x_m, world_y_m, &ch, 0.0);
let (spx, spy) = (px + wdx, py + wdy);
let elev_q =
((bilinear(&ta.elev_pct, ta.w, ta.h, spx, spy) as f64 * 100.0).round() as i32)
.clamp(0, 100);
let elev_q = ((bilinear(&ta.elev_pct, ta.w, ta.h, spx, spy) as f64 * 100.0).round() as i32)
.clamp(0, 100);
let ocean_fraction_q = ((bilinear_bool(&ta.ocean_mask, ta.w, ta.h, spx, spy) as f64 * 100.0)
.round() as i32)
.clamp(0, 100);
@@ -3707,8 +3706,7 @@ mod tests {
latitude_deg: lat_deg,
..body_params.clone()
};
let driver_temp =
derive_temperature_c(&driver_params, &climate, seed.seed());
let driver_temp = derive_temperature_c(&driver_params, &climate, seed.seed());
let driver_moisture =
derive_moisture_q(&driver_params, raw_elev_q, raw_ocean_q, &climate);
let driver_glaciation =
@@ -3731,11 +3729,10 @@ mod tests {
warp_only_nanos += warp_call_start.elapsed().as_nanos() as u64;
warp_plus_character_nanos += warp_call_start.elapsed().as_nanos() as u64;
let (spx, spy) = (px + wdx, py + wdy);
let warped_ocean_q = ((bilinear_bool(&ta.ocean_mask, ta.w, ta.h, spx, spy)
as f64
* 100.0)
.round() as i32)
.clamp(0, 100);
let warped_ocean_q =
((bilinear_bool(&ta.ocean_mask, ta.w, ta.h, spx, spy) as f64 * 100.0)
.round() as i32)
.clamp(0, 100);
if (raw_ocean_q > 50) != (warped_ocean_q > 50) {
disagreements += 1;