activeloopai / deeplake
Showing 1 of 1 files from the diff.

@@ -35,24 +35,24 @@
Loading
35 35
        tobytes = {k: k in tobytes for k in tensors}
36 36
37 37
    def __iter__():
38 -
        for index in range(len(dataset)):
39 -
            sample = {}
38 +
        for sample in dataset:
39 +
            out = {}
40 40
            corrupt_sample_found = False
41 41
            for key in tensors:
42 42
                try:
43 -
                    value = dataset[key][index]
43 +
                    value = sample[key]
44 44
                    if tobytes[key]:
45 45
                        value = [value.tobytes()]
46 46
                    else:
47 47
                        value = value.numpy(fetch_chunks=fetch_chunks)
48 -
                    sample[key] = value
48 +
                    out[key] = value
49 49
                except SampleDecompressionError:
50 50
                    warnings.warn(
51 51
                        f"Skipping corrupt {dataset[key].meta.sample_compression} sample."
52 52
                    )
53 53
                    corrupt_sample_found = True
54 54
            if not corrupt_sample_found:
55 -
                yield sample
55 +
                yield out
56 56
57 57
    def generate_signature():
58 58
        signature = {}
Files Coverage
deeplake 89.15%
conftest.py 100.00%
setup.py 0.00%
Project Totals (253 files) 89.04%
3488889390
PYTHON=undefined
OS=undefined
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading