File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ use egobox_ego::gpmix::mixint::MixintContext;
4
4
use numpy:: { IntoPyArray , PyArray2 } ;
5
5
use pyo3:: prelude:: * ;
6
6
7
- #[ pyclass( rename_all = "SCREAMING_SNAKE_CASE" ) ]
8
- #[ derive( Debug , Clone , Copy ) ]
7
+ #[ pyclass( eq , eq_int , rename_all = "SCREAMING_SNAKE_CASE" ) ]
8
+ #[ derive( Debug , Clone , Copy , PartialEq ) ]
9
9
pub enum Sampling {
10
10
Lhs = 1 ,
11
11
FullFactorial = 2 ,
@@ -28,6 +28,7 @@ pub enum Sampling {
28
28
/// ndarray of shape (n_samples, n_variables)
29
29
///
30
30
#[ pyfunction]
31
+ #[ pyo3( signature = ( method, xspecs, n_samples, seed=None ) ) ]
31
32
pub fn sampling (
32
33
py : Python < ' _ > ,
33
34
method : Sampling ,
@@ -89,6 +90,7 @@ pub fn sampling(
89
90
/// ndarray of shape (n_samples, n_variables)
90
91
///
91
92
#[ pyfunction]
93
+ #[ pyo3( signature = ( xspecs, n_samples, seed=None ) ) ]
92
94
pub ( crate ) fn lhs (
93
95
py : Python ,
94
96
xspecs : PyObject ,
You can’t perform that action at this time.
0 commit comments