Skip to content
Snippets Groups Projects
Commit c158ff88 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

fix: do not prune by default

parent 93a751e8
No related branches found
No related tags found
1 merge request!23refactor: internal data structures and introduce release function
Pipeline #91712 passed
......@@ -14,7 +14,7 @@ class DataHandler:
mi, ma, st = cell_slice.indices(shape["cell"])
assert st == 1, "non-contiguous cell slices are not supported"
self.t = t0
self.prune_offset = int(var.attrs.get("loco::num_retained_timesteps", 2))
self.prune_offset = var.attrs.get("loco::num_retained_timesteps", None)
self.t_flushed = self.t
chunks = {
dim: chunk_size for dim, chunk_size in zip(var.attrs["_ARRAY_DIMENSIONS"], var.chunks)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment