Skip to content

Commit

Permalink
Merge pull request #175 from light-curve/dependabot/cargo/ndarray-tw-…
Browse files Browse the repository at this point in the history
…0.16

Update ndarray requirement from ^0.15 to ^0.16
  • Loading branch information
hombit authored Sep 3, 2024
2 parents 2cc3773 + b1fb4df commit ac02528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ itertools = "^0.13"
lazy_static = "^1.4"
libm = "^0.2"
macro_const = "^0.1"
ndarray = "^0.15"
ndarray-stats = "^0.5"
ndarray = "^0.16"
ndarray-stats = "^0.6"
num-complex = "^0.4" # the same version as used by fftw
num-traits = "^0.2"
paste = "1"
Expand All @@ -68,7 +68,7 @@ plotters-bitmap = "0.3.3"
rand = "0.8"
rand_distr = "0.4"
rayon = "1.5"
realfft= "3.1"
realfft = "3.1"
rustfft = "6.1"
serde_json = "1.0"
serde_test = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion src/features/median_absolute_deviation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ where
let sorted_deviation: SortedArray<_> =
ts.m.sample
.mapv(|m| T::abs(m - m_median))
.into_raw_vec()
.as_slice_memory_order()
.expect("TimeSeries::m::sample::mapv(...) is supposed to be contiguous")
.into();
Ok(vec![sorted_deviation.median()])
}
Expand Down

0 comments on commit ac02528

Please sign in to comment.