Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasBoss committed Jan 19, 2024
1 parent 5ce6ba9 commit 9509860
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/interp1d/strategies/cubic_spline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ndarray::{
s, Array, Array1, ArrayBase, ArrayView, ArrayViewMut, Axis, Data, Dimension, FoldWhile, Ix1,
IxDyn, RemoveAxis, ScalarOperand, Slice, Zip,
};
use num_traits::{cast, Num, NumCast, Pow, Euclid};
use num_traits::{cast, Euclid, Num, NumCast, Pow};

use crate::{interp1d::Interp1D, BuilderError, InterpolateError};

Expand Down Expand Up @@ -772,8 +772,8 @@ where
let mut x = x;
if matches!(self.extrapolate, Extrapolate::Periodic) && !in_range {
let x0 = interp.x[0];
let xn = interp.x[interp.x.len() -1];
x = ((x-x0).rem_euclid(&(xn - x0))) + x0;
let xn = interp.x[interp.x.len() - 1];
x = ((x - x0).rem_euclid(&(xn - x0))) + x0;
}

let idx = interp.get_index_left_of(x);
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! and different interpolation strategies
//!
//! **2D Strategies**
//! - [`interp2d::Biliniar`] - Biliniar interpolation and extrapolation
//! - [`interp2d::Bilinear`] - Bilinear interpolation and extrapolation
//!
//! # Custom interpolation strategy
//! This crate defines traits to allow implementation of user
Expand Down

0 comments on commit 9509860

Please sign in to comment.