Skip to content

Commit

Permalink
remove the new slicer
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Aug 16, 2023
1 parent cd6fb0c commit eca937c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 442 deletions.
9 changes: 0 additions & 9 deletions src/idx/dataset/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,6 @@ impl<const D: usize> Dataset<'_, D> {
ensure!(chunk.contains(&offset, &self.chunk_shape) == std::cmp::Ordering::Equal, "chunk does not contain its offset");
}

let end: u64 = self.shape.iter().product();
let chunk_sh: u64 = self.chunk_shape.iter().product();

// ensure!(end % chunk_sh == 0, "chunks not modulo of dataset shape: {0:?} vs {1:?}", self.shape, self.chunk_shape);
// let chunks = end / chunk_sh;
// ensure!(chunks == self.chunks.len() as u64, "number of chunks does not match dataset shape: {chunks} != {}", self.chunks.len());



Ok(true)
}

Expand Down
1 change: 0 additions & 1 deletion src/idx/dataset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mod any;
#[allow(clippy::module_inception)]
mod dataset;
mod types;
mod slicer;

pub use any::*;
pub use dataset::*;
Expand Down
Loading

0 comments on commit eca937c

Please sign in to comment.