Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and use Extents type #33

Merged
merged 6 commits into from
Oct 15, 2023
Merged

Add and use Extents type #33

merged 6 commits into from
Oct 15, 2023

Conversation

magnusuMET
Copy link
Collaborator

Adds the Extents type which should make selecting data a bit more ergonomic.

This mirrors the API of the netcdf and hdf5 crates (more or less copy-paste ;) ) but is tailored to the assumptions of this crate (i.e. no strides).

This contains major breaking API changes.

@magnusuMET magnusuMET requested a review from gauteh October 7, 2023 08:19
src/reader/dataset.rs Outdated Show resolved Hide resolved
@gauteh
Copy link
Owner

gauteh commented Oct 7, 2023

Great! Thanks. I will take a look.

@gauteh
Copy link
Owner

gauteh commented Oct 7, 2023

I thought doc-tests were already run with just cargo test? At least they are for me locally.

@codecov-commenter
Copy link

Codecov Report

Merging #33 (ff3c896) into main (9f26ddc) will increase coverage by 1.74%.
The diff coverage is 62.12%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   56.83%   58.57%   +1.74%     
==========================================
  Files          21       22       +1     
  Lines        1061     1178     +117     
==========================================
+ Hits          603      690      +87     
- Misses        458      488      +30     
Files Coverage Δ
benches/stream.rs 0.00% <ø> (ø)
src/filters/gzip.rs 75.00% <ø> (ø)
src/idx/index.rs 88.88% <ø> (ø)
src/idx/mod.rs 100.00% <ø> (ø)
src/lib.rs 0.00% <ø> (ø)
src/reader/cache.rs 90.47% <100.00%> (-1.20%) ⬇️
src/idx/dataset/dataset.rs 68.42% <83.33%> (+0.11%) ⬆️
src/python/mod.rs 0.00% <0.00%> (ø)
src/reader/stream.rs 45.71% <0.00%> (+1.81%) ⬆️
src/reader/direct.rs 45.00% <50.00%> (+1.52%) ⬆️
... and 2 more

src/reader/dataset.rs Outdated Show resolved Hide resolved
src/reader/dataset.rs Outdated Show resolved Hide resolved
@gauteh gauteh merged commit 203aebc into gauteh:main Oct 15, 2023
12 of 13 checks passed
@gauteh
Copy link
Owner

gauteh commented Oct 15, 2023

Thanks, merged.

@magnusuMET magnusuMET deleted the feature/extents branch October 16, 2023 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants