Skip to content

Commit

Permalink
adding uncompressed string
Browse files Browse the repository at this point in the history
  • Loading branch information
edyoshikun committed Sep 28, 2024
1 parent f374116 commit e70d168
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions iohub/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,21 @@ def print_info(path: StrOrBytesPath, verbose=False):
print("Zarr hierarchy:")
reader.print_tree()
positions = list(reader.positions())
total_GB = len(positions) * (positions[0][1][0].nbytes) / 1e9
total_GB_uncompressed = (
len(positions) * (positions[0][1][0].nbytes) / 1e9
)
msgs.append(f"Positions:\t\t {len(positions)}")
msgs.append(f"Chunk size:\t\t {positions[0][1][0].chunks}")
msgs.append(f"Store Size [GB]:\t\t {total_GB:.2f}")
msgs.append(
f"Uncompressed size [GB]:\t\t {total_GB_uncompressed:.2f}"
)
else:
total_GB = reader["0"].nbytes / 1e9
total_GB_uncompressed = reader["0"].nbytes / 1e9
msgs.append(f"(Z, Y, X) scale (um):\t {tuple(reader.scale[2:])}")
msgs.append(f"Chunk size:\t\t {reader['0'].chunks}")
msgs.append(f"Size [GB]:\t\t {total_GB:.2f}")
msgs.append(
f"Uncompressed size [GB]:\t\t {total_GB_uncompressed:.2f}"
)
if verbose:
msgs.extend(
[
Expand Down

0 comments on commit e70d168

Please sign in to comment.