Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
marsupialtail committed Apr 29, 2024
1 parent 99e0c3c commit 65900c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

build-macos-x86:
name: Build Rust Project on macOS x86
runs-on: macos-latest
runs-on: macos-14-large

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rottnest"
version = "1.2.0"
version = "1.3.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "rottnest"
version = '1.2.0'
version = '1.3.0'
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Rust",
Expand Down
11 changes: 1 addition & 10 deletions src/lava/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ pub async fn build_lava_bm25(
}
}

println!("{}", counter);

plist_offsets.append(&mut plist_elems);

let compressed_term_dict_offset = file.seek(SeekFrom::Current(0))?;
Expand Down Expand Up @@ -354,14 +352,10 @@ pub async fn build_lava_kmer(
}
}

println!("{}", counter);

let serialized_term_dictionary = bincode::serialize(&term_dictionary).unwrap();
let compressed_term_dictionary = encode_all(&serialized_term_dictionary[..], 0)
.expect("Compression of term dictionary failed");

println!("{}", compressed_term_dictionary.len());

plist_offsets.append(&mut plist_elems);
let compressed_term_dict_offset = file.seek(SeekFrom::Current(0))?;
file.write_all(&compressed_term_dictionary)?;
Expand Down Expand Up @@ -575,7 +569,7 @@ pub async fn build_lava_substring(
}
}
// print out total file size so far
println!("total file size: {}", file.seek(SeekFrom::Current(0))?);
// println!("total file size: {}", file.seek(SeekFrom::Current(0))?);

let mut cumulative_counts: Vec<u64> = vec![0];
for i in 0..tokenizer.get_vocab_size(false) {
Expand Down Expand Up @@ -634,7 +628,6 @@ pub async fn build_lava_vector(
"Expects uint64 array as second argument".to_string(),
))?;

println!("{} {}", array.len(), uid.len());
let dim = array.shape()[1];

if array.shape()[0] != uid.len() {
Expand Down Expand Up @@ -674,8 +667,6 @@ pub async fn build_lava_vector(
let bytes = bincode::serialize(&nlist)?;
let compressed_nlist: Vec<u8> = encode_all(&bytes[..], 0).expect("Compression failed");

// println!("{}", nlist);

let mut file = File::create(output_file_name)?;
file.write_all(&(num_points as u64).to_le_bytes())?;
file.write_all(&(dim as u64).to_le_bytes())?;
Expand Down

0 comments on commit 65900c7

Please sign in to comment.