Skip to content

Commit

Permalink
Merge branch 'upd-smash-core' into maturin-wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Oct 9, 2023
2 parents 3cf1fdb + db318ba commit 5def041
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 134 deletions.
179 changes: 73 additions & 106 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ crate-type = ["cdylib"]
pyo3 = { version = "0.19.2", features = ["extension-module", "anyhow"] }
rayon = "1.8.0"
serde = { version = "1.0.136", features = ["derive"] }
sourmash = { git = "https://github.com/sourmash-bio/sourmash", "rev" = "ff1092f8f366339caa59d7203f623813228f4356" }
#sourmash = { git = "https://github.com/sourmash-bio/sourmash", "rev" = "ff1092f8f366339caa59d7203f623813228f4356" }
#sourmash = { git = "https://github.com/sourmash-bio/sourmash", branch = "lirber/mastiff", features = ["branchwater"] }
sourmash = { path = "../sourmash/src/core", features = ["branchwater"] }
serde_json = "1.0.107"
niffler = "2.4.0"
log = "0.4.14"
Expand All @@ -23,6 +25,7 @@ zip = "0.6"
tempfile = "3.8"
needletail = "0.5.1"
csv = "1.2.2"
camino = "1.1.6"

[dev-dependencies]
assert_cmd = "2.0.4"
Expand Down
5 changes: 3 additions & 2 deletions src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use std::path::Path;

use crate::utils::is_revindex_database;

use sourmash::index::revindex::RevIndex;
use sourmash::index::revindex::{RevIndex, RevIndexOps};


pub fn check<P: AsRef<Path>>(index: P, quick: bool) -> Result<(), Box<dyn std::error::Error>> {
if !is_revindex_database(index.as_ref()) {
Expand All @@ -13,7 +14,7 @@ pub fn check<P: AsRef<Path>>(index: P, quick: bool) -> Result<(), Box<dyn std::e
}

println!("Opening DB");
let db = RevIndex::open(index.as_ref(), true);
let db = RevIndex::open(index.as_ref(), true)?;

println!("Starting check");
db.check(quick);
Expand Down
Loading

0 comments on commit 5def041

Please sign in to comment.