Fix shuffle2
Compare changes
- Stefan Reck authored
+ 85
− 54
@@ -14,12 +14,14 @@ from orcasong.tools.concatenate import copy_attrs
@@ -45,7 +47,7 @@ def h5shuffle2(input_file,
@@ -69,13 +71,14 @@ def h5shuffle2(input_file,
@@ -116,7 +119,9 @@ def shuffle_file(
@@ -144,8 +149,9 @@ def shuffle_file(
@@ -160,7 +166,7 @@ def get_indices_largest(dset_infos):
@@ -170,7 +176,9 @@ def get_indices_largest(dset_infos):
@@ -178,8 +186,9 @@ def get_n_iterations(input_file, datasets=("x", "y"), max_ram=None, max_ram_frac
@@ -194,7 +203,7 @@ def get_indices_chunked(n_batches, n_chunks, chunksize):
@@ -211,8 +220,9 @@ def get_dset_infos(f, datasets, max_ram):
@@ -222,19 +232,21 @@ def get_dset_infos(f, datasets, max_ram):
@@ -245,7 +257,7 @@ def make_dset(f_out, dset_info, indices):
@@ -323,20 +335,39 @@ def slicify(fancy_indices):