Skip to content

Commit

Permalink
linting error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbuniat committed Dec 1, 2020
1 parent 9edd1b1 commit 37b9d1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions examples/upload_tfds.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
from hub.utils import Timer

if __name__ == "__main__":
path = "./data/test/tfds_new/eurosat"
with Timer("Eurosat TFDS"):
out_ds = hub.Dataset.from_tfds("coco", num=100)
res_ds = out_ds.store("./data/test/tfds_new/eurosat")
print(res_ds.shape)
out_ds = hub.Dataset.from_tfds("coco")
res_ds = out_ds.store(path)
ds = hub.load(path)
print(ds)
print(ds["image"].compute())
2 changes: 1 addition & 1 deletion hub/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_compute_lcm():
assert compute_lcm([1, 2, 8, 3]) == 24
assert compute_lcm([1]) == 1
assert compute_lcm([]) is None
assert compute_lcm([2,2]) == 2
assert compute_lcm([2, 2]) == 2


def test_batchify():
Expand Down

0 comments on commit 37b9d1b

Please sign in to comment.