Skip to content

Commit

Permalink
DOC+BUG: getitem returns a single tuple, not nested tuple
Browse files Browse the repository at this point in the history
The example code should be
```
for image, dna_barcode, label in dataset:
```
instead of
```
for (image, dna_barcode), label in dataset:
```
since the return value is one tuple not a nested tuple.

Reported by @xl-huo.
  • Loading branch information
scottclowe committed Feb 8, 2025
1 parent f4c496c commit 2f23ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ For example, to load the BIOSCAN-1M dataset:
dataset = BIOSCAN1M(root="~/Datasets/bioscan/bioscan-1m/")
for (image, dna_barcode), label in dataset:
for image, dna_barcode, label in dataset:
# Do something with the image, dna_barcode, and label
pass
Expand All @@ -59,7 +59,7 @@ To load the BIOSCAN-5M dataset:
dataset = BIOSCAN5M(root="~/Datasets/bioscan/bioscan-5m/")
for (image, dna_barcode), label in dataset:
for image, dna_barcode, label in dataset:
# Do something with the image, dna_barcode, and label
pass
Expand Down

0 comments on commit 2f23ba9

Please sign in to comment.