Skip to content

Commit

Permalink
Fix some version issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Dec 22, 2024
1 parent 220accc commit 562fa6d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ fn write_wav(
let data = data.into_dimensionality::<numpy::Ix2>().w()?;
match data.shape() {
[1, l] => {
let data = data.into_shape_with_order((*l,)).w()?;
let data = data.into_shape((*l,)).w()?;

Check failure on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 192 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
let data = to_cow(&data);
wav::write_mono(&mut w, &data, sample_rate).w_f(&filename)?;
}
[2, l] => {
let data = data.into_shape_with_order((2 * *l,)).w()?;
let data = data.into_shape((2 * *l,)).w()?;

Check failure on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 197 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
let data = to_cow(&data);
let (pcm1, pcm2) = (&data[..*l], &data[*l..]);
let data = pcm1
Expand Down Expand Up @@ -242,11 +242,11 @@ fn write_opus(
let data = data.into_dimensionality::<numpy::Ix2>().w()?;
match data.shape() {
[1, l] => {
let data = data.into_shape_with_order((*l,)).w()?;
let data = data.into_shape((*l,)).w()?;

Check failure on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 245 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
write_mono(w, data)?
}
[2, l] => {
let data = data.into_shape_with_order((*l * 2,)).w()?;
let data = data.into_shape((*l * 2,)).w()?;

Check failure on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 249 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
let data = to_cow(&data);
let (pcm1, pcm2) = (&data[..*l], &data[*l..]);
opus::write_ogg_stereo(&mut w, pcm1, pcm2, sample_rate).w_f(&filename)?
Expand Down Expand Up @@ -292,7 +292,7 @@ fn resample(
2 => {
let pcm = pcm.into_dimensionality::<numpy::Ix2>().w()?;
let (channels, l) = pcm.dim();
let pcm = pcm.into_shape_with_order((channels * l,)).w()?;
let pcm = pcm.into_shape((channels * l,)).w()?;

Check failure on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Clippy

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (macOS-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macOS-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, nightly)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`

Check warning on line 295 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest, stable)

use of deprecated method `numpy::ndarray::impl_methods::<impl numpy::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
let pcm = to_cow(&pcm)
.chunks(l)
.map(|pcm| audio::resample(pcm, src_sample_rate, dst_sample_rate))
Expand Down

0 comments on commit 562fa6d

Please sign in to comment.