Skip to content

Commit 65bf6aa

Browse files
committed
UPgrade pyo3 0.20
1 parent 1bba19a commit 65bf6aa

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ linfa = { version = "0.7", default-features = false }
4040

4141
ndarray = { version = "0.15", features = ["rayon", "approx"] }
4242
ndarray-rand = "0.14"
43-
numpy = "0.18"
43+
numpy = "0.20.0"
4444
anyhow = "1"
4545
rayon = "1"
4646

@@ -49,8 +49,8 @@ libm = "0.2"
4949
finitediff = { version = "0.1.4", features = ["ndarray"] }
5050
env_logger = "0.10.0"
5151
log = "0.4"
52-
pyo3 = { version = "0.18.0", features = ["extension-module"] }
53-
pyo3-log = "0.8"
52+
pyo3 = { version = "0.20.0", features = ["extension-module"] }
53+
pyo3-log = "0.9.0"
5454
serde = "1"
5555
serde_json = "1"
5656

src/egor.rs

-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ pub(crate) fn to_specs(py: Python, xlimits: Vec<Vec<f64>>) -> PyResult<PyObject>
132132
/// Random generator seed to allow computation reproducibility.
133133
///
134134
#[pyclass]
135-
#[pyo3(
136-
text_signature = "(fun, n_cstr=0, n_start=20, n_doe=0, regression_spec=7, correlation_spec=15, infill_strategy=1, q_points=1, par_infill_strategy=1, infill_optimizer=1, n_clusters=1)"
137-
)]
138135
pub(crate) struct Egor {
139136
pub fun: PyObject,
140137
pub xspecs: PyObject,

src/gpmix.rs

-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ use rand_xoshiro::Xoshiro256Plus;
5252
/// Random generator seed to allow computation reproducibility.
5353
///
5454
#[pyclass]
55-
#[pyo3(text_signature = "()")]
5655
pub(crate) struct GpMix {
5756
pub n_clusters: usize,
5857
pub regression_spec: RegressionSpec,
@@ -139,7 +138,6 @@ impl GpMix {
139138

140139
/// A trained Gaussian processes mixture
141140
#[pyclass]
142-
#[pyo3(text_signature = "()")]
143141
pub(crate) struct Gpx(Box<Moe>);
144142

145143
#[pymethods]

src/types.rs

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ pub(crate) enum InfillOptimizer {
7878

7979
#[pyclass]
8080
#[derive(Clone, Copy)]
81-
#[pyo3(text_signature = "(val, tol=1e-6)")]
8281
pub(crate) struct ExpectedOptimum {
8382
#[pyo3(get)]
8483
pub(crate) val: f64,

0 commit comments

Comments
 (0)