Fix shuffle2
Compare changes
- Stefan Reck authored
+ 135
− 87
@@ -14,14 +14,71 @@ from orcasong.tools.concatenate import copy_attrs
@@ -62,7 +119,9 @@ def shuffle_v2(
@@ -90,8 +149,9 @@ def shuffle_v2(
@@ -106,7 +166,7 @@ def get_indices_largest(dset_infos):
@@ -116,7 +176,9 @@ def get_indices_largest(dset_infos):
@@ -124,8 +186,9 @@ def get_n_iterations(input_file, datasets=("x", "y"), max_ram=None, max_ram_frac
@@ -140,7 +203,7 @@ def get_indices_chunked(n_batches, n_chunks, chunksize):
@@ -157,8 +220,9 @@ def get_dset_infos(f, datasets, max_ram):
@@ -168,19 +232,21 @@ def get_dset_infos(f, datasets, max_ram):
@@ -191,7 +257,7 @@ def make_dset(f_out, dset_info, indices):
@@ -267,59 +333,41 @@ def slicify(fancy_indices):