File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 pip install nbconvert
1717 pip install black_nbconvert
1818 pip install markupsafe==2.0.1
19+ pip install toml
1920 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2021 git config --local user.email "action@github.com"
2122 git config --local user.name "GitHub Action"
Original file line number Diff line number Diff line change 11[package ]
22name = " graph_pca"
3- version = " 0.2 .0"
3+ version = " 0.3 .0"
44edition = " 2021"
55
66[dependencies ]
7- pyo3 = { version = " 0.21.1 " , features = [" extension-module" ] }
8- nalgebra = " 0.32.3 "
7+ pyo3 = { version = " 0.29.0 " , features = [" extension-module" ] }
8+ nalgebra = " 0.35.0 "
99rayon = " 1.8.0"
10- kdtree = " 0.7 .0"
11- petgraph = " 0.6.4 "
10+ kdtree = " 0.8 .0"
11+ petgraph = " 0.8.3 "
1212
1313[lib ]
1414name = " graph_pca"
@@ -19,4 +19,4 @@ crate-type = ["cdylib"]
1919codegen-units = 1
2020lto = " fat"
2121panic = " abort"
22- strip = " symbols"
22+ strip = " symbols"
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ fn get_pca(eigenvalues: &[f64]) -> Vec<f64> {
127127 . collect ( )
128128}
129129
130- #[ pyclass]
130+ #[ pyclass( from_py_object ) ]
131131#[ derive( Clone , PartialEq ) ]
132132pub enum Feature {
133133 Eigenvalues ,
@@ -198,3 +198,4 @@ pub fn calculate_features(
198198
199199 vectors_per_feature
200200}
201+
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use pyo3::prelude::*;
33mod graph_pca_lib;
44
55#[ pymodule]
6- fn graph_pca ( _py : Python < ' _ > , module : & PyModule ) -> PyResult < ( ) > {
6+ fn graph_pca ( module : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
77 module. add_function ( wrap_pyfunction ! ( calculate_features, module) ?) ?;
88 module. add_class :: < Feature > ( ) ?;
99 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments