Skip to content

Commit 4a70e99

Browse files
author
Roderick Bovee
committed
Fix WIP python commit
1 parent c59a7e8 commit 4a70e99

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taxonomy"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Roderick Bovee & One Codex <roderick@onecodex.com>"]
55
description = "Routines for loading, saving, and manipulating taxonomic trees"
66
keywords = ["taxonomy", "bioinformatics"]

src/python.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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;
65
use std::fs::File;
76
use std::io::Cursor;
87
use std::str::FromStr;
@@ -11,7 +10,6 @@ use pyo3::class::*;
1110
use pyo3::prelude::*;
1211
use pyo3::types::exceptions::KeyError;
1312
use pyo3::types::{PyBytes, PyType};
14-
use pyo3::AsPyRef;
1513

1614
use crate::base::{GeneralTaxonomy, IntTaxID};
1715
use 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();

0 commit comments

Comments
 (0)