File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " taxonomy"
3- version = " 0.3.0 "
3+ version = " 0.3.1 "
44authors = [" Roderick Bovee & One Codex <roderick@onecodex.com>" ]
55description = " Routines for loading, saving, and manipulating taxonomic trees"
66keywords = [" taxonomy" , " bioinformatics" ]
Original file line number Diff line number Diff line change 22//!
33//! Only enabled when `cargo build --features python` is run or when the
44//! Python API is build with `python setup.py develop`.
5- use std:: collections:: HashMap ;
65use std:: fs:: File ;
76use std:: io:: Cursor ;
87use std:: str:: FromStr ;
@@ -11,7 +10,6 @@ use pyo3::class::*;
1110use pyo3:: prelude:: * ;
1211use pyo3:: types:: exceptions:: KeyError ;
1312use pyo3:: types:: { PyBytes , PyType } ;
14- use pyo3:: AsPyRef ;
1513
1614use crate :: base:: { GeneralTaxonomy , IntTaxID } ;
1715use crate :: edit:: { prune_away, prune_to} ;
@@ -295,11 +293,6 @@ impl Taxonomy {
295293 } )
296294 }
297295
298- fn maximum_weighted_path ( & self , weights : & PyObject ) -> PyResult < ( String , f64 ) > {
299- let weights: & HashMap < & str , f32 > = PyObjectRef :: extract ( weights) ?;
300- Ok ( ( "" . to_string ( ) , 0. ) )
301- }
302-
303296 #[ getter]
304297 fn get_root ( & self ) -> PyResult < String > {
305298 let root: IntTaxID = self . t . root ( ) ;
You can’t perform that action at this time.
0 commit comments