diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ccbfcc..12faf5f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 5915e5b..6018343 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 8190cd7..a1f2606 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/src/lava/build.rs b/src/lava/build.rs index f07f347..84e3517 100644 --- a/src/lava/build.rs +++ b/src/lava/build.rs @@ -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))?; @@ -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)?; @@ -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 = vec![0]; for i in 0..tokenizer.get_vocab_size(false) { @@ -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() { @@ -674,8 +667,6 @@ pub async fn build_lava_vector( let bytes = bincode::serialize(&nlist)?; let compressed_nlist: Vec = 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())?;