Skip to content

Commit

Permalink
Refine UsageLogStorageTransformer outputs and add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Jan 24, 2024
1 parent 9d0d31b commit 8a9b0f8
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 100 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Breaking**: Rename `array::safe_transmute_to_bytes_vec` to `array::transmute_to_bytes_vec`
- **Breaking**: Make `zfp` a private dependency by changing `Zfp{Bitstream,Field,Stream}` from `pub` to `pub(super)`
- **Breaking**: Make `zip` a private dependency by not exposing `ZipError` in `ZipStorageAdapterCreateError`
- Refine `UsageLogStorageTransformer` outputs and add docs

### Removed
- **Breaking**: Remove `StorePrefixError::new`, deprecated since `v0.7.3`
Expand Down
11 changes: 11 additions & 0 deletions examples/sharded_array_write_read.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use itertools::Itertools;

fn sharded_array_write_read() -> Result<(), Box<dyn std::error::Error>> {
use zarrs::{
array::{
Expand Down Expand Up @@ -148,6 +150,15 @@ fn sharded_array_write_read() -> Result<(), Box<dyn std::error::Error>> {
let tree = node.hierarchy_tree();
println!("The zarr hierarchy tree is:\n{}", tree);

println!(
"The keys in the store are:\n[{}]",
store_readable_listable
.list()
.unwrap_or_default()
.iter()
.format(", ")
);

Ok(())
}

Expand Down
Loading

0 comments on commit 8a9b0f8

Please sign in to comment.