Removed not necessary py in set_gains methods
This commit is contained in:
parent
c3f91b8e22
commit
23ddf39a4a
@ -344,7 +344,7 @@ impl BiquadBank {
|
|||||||
|
|
||||||
#[pyo3(name = "set_gains")]
|
#[pyo3(name = "set_gains")]
|
||||||
/// See: [BiquadBank::set_gains()]
|
/// See: [BiquadBank::set_gains()]
|
||||||
pub fn set_gains_py<'py>(&mut self, py: Python<'py>, gains: PyArrayLike1<Flt>) -> PyResult<()> {
|
pub fn set_gains_py<'py>(&mut self, gains: PyArrayLike1<Flt>) -> PyResult<()> {
|
||||||
if gains.len() != self.len() {
|
if gains.len() != self.len() {
|
||||||
return Err(PyValueError::new_err("Invalid number of provided gains"));
|
return Err(PyValueError::new_err("Invalid number of provided gains"));
|
||||||
}
|
}
|
||||||
@ -353,7 +353,7 @@ impl BiquadBank {
|
|||||||
}
|
}
|
||||||
#[pyo3(name = "set_gains_dB")]
|
#[pyo3(name = "set_gains_dB")]
|
||||||
/// See: [BiquadBank::set_gains_dB()]
|
/// See: [BiquadBank::set_gains_dB()]
|
||||||
pub fn set_gains_dB_py<'py>(&mut self, py: Python<'py>, gains_dB: PyArrayLike1<Flt>) -> PyResult<()> {
|
pub fn set_gains_dB_py<'py>(&mut self, gains_dB: PyArrayLike1<Flt>) -> PyResult<()> {
|
||||||
if gains_dB.len() != self.len() {
|
if gains_dB.len() != self.len() {
|
||||||
return Err(PyValueError::new_err("Invalid number of provided gains"));
|
return Err(PyValueError::new_err("Invalid number of provided gains"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user