Skip to content

Commit

Permalink
CHORE: cleanup of unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
sander-willems-bruker committed Jan 24, 2024
1 parent c276d1b commit fdbfaae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 136 deletions.
42 changes: 0 additions & 42 deletions src/file_readers/common/ms_data_blobs/processors.rs

This file was deleted.

83 changes: 0 additions & 83 deletions src/file_readers/common/ms_data_blobs/readers.rs

This file was deleted.

11 changes: 0 additions & 11 deletions src/vec_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,3 @@ pub fn filter_with_mask<T: Copy>(vec: &Vec<T>, mask: &Vec<bool>) -> Vec<T> {
.map(|(&x_elem, _)| x_elem)
.collect()
}

pub fn counts_to_indptr<T: Into<u64> + Copy>(vec: Vec<T>) -> Vec<u64> {
let mut indptr: Vec<u64> = Vec::with_capacity(vec.len() + 1);
let mut offset: u64 = 0;
indptr.push(offset);
for i in 0..vec.len() {
offset += vec[i].into();
indptr.push(offset);
}
indptr.iter().map(|&x| x as u64).collect()
}

0 comments on commit fdbfaae

Please sign in to comment.