Skip to content
Snippets Groups Projects
Commit 1f482682 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Debugged rechunker

parent eb08b26b
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,10 @@ def calc_chunk_length(ds, varname, chunkdim, target_mb, other_chunks): ...@@ -28,9 +28,10 @@ def calc_chunk_length(ds, varname, chunkdim, target_mb, other_chunks):
------ ------
""" """
n_bytes = ds[varname].nbytes n_bytes = ds[varname].nbytes
return math.ceil( target_mb_matching_len=math.ceil(
len(ds[chunkdim]) * other_chunks / math.ceil(n_bytes / (target_mb * (2**20))) len(ds[chunkdim]) * other_chunks / math.ceil(n_bytes / (target_mb * (2**20)))
) )
return math.ceil(len(ds[chunkdim])/(math.ceil(len(ds[chunkdim]) / target_mb_matching_len)))
def calc_other_dim_chunks(orig_chunks_dict, chunkdim): def calc_other_dim_chunks(orig_chunks_dict, chunkdim):
......
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