Skip to content

Store dataset name in meta.json #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Store dataset name in meta.json #468

merged 2 commits into from
Jan 19, 2021

Conversation

AbhinavTuli
Copy link
Contributor

Users can now specify dataset name at the time of creation. This is only useful for the visualizer and is irrelevant for datasets not stored on hub storage:-

ds = hub.Dataset("username/dataset_url", schema=my_schema,  shape=(10,), name="my_dataset")

Dataset owners can also rename the dataset:-

ds2 = hub.Dataset("username/dataset_url")
ds2.rename("new_name")

You can check the dataset name using:-

print(ds.name)

@github-actions
Copy link

Locust summary

Git references

Initial: b4f0b9e
Terminal: 2323acf

hub/api/dataset.py
Changes:
hub/schema/audio.py
Changes:
  • Name: Audio
    Type: class
    Changed lines: 7
    Total lines: 69
    Changes:
hub/schema/class_label.py
Changes:
hub/compute/transform.py
Changes:
hub/schema/image.py
Changes:
hub/schema/segmentation.py
Changes:
hub/schema/bbox.py
Changes:
  • Name: BBox
    Type: class
    Changed lines: 4
    Total lines: 35
    Changes:
hub/schema/mask.py
Changes:
  • Name: Mask
    Type: class
    Changed lines: 3
    Total lines: 51
    Changes:
hub/schema/polygon.py
Changes:
hub/schema/sequence.py
Changes:
hub/schema/text.py
Changes:
  • Name: Text
    Type: class
    Changed lines: 4
    Total lines: 53
    Changes:
hub/schema/video.py
Changes:
  • Name: Video
    Type: class
    Changed lines: 4
    Total lines: 58
    Changes:
hub/store/dynamic_tensor.py
Changes:
hub/api/tests/test_dataset.py
Changes:
hub/schema/tests/test_features.py
Changes:
hub/schema/tests/test_serilize_deserialize.py
Changes:
hub/store/tests/test_s3_storage.py
Changes:
hub/test_numcodecs.py
Changes:

@codecov
Copy link

codecov bot commented Jan 18, 2021

Codecov Report

Merging #468 (7bea8bb) into master (8a5f4ad) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #468      +/-   ##
==========================================
- Coverage   85.09%   84.99%   -0.11%     
==========================================
  Files          49       49              
  Lines        3623     3632       +9     
==========================================
+ Hits         3083     3087       +4     
- Misses        540      545       +5     
Impacted Files Coverage Δ
hub/api/dataset.py 87.48% <100.00%> (-0.29%) ⬇️
hub/utils.py 78.86% <0.00%> (-1.63%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a5f4ad...7bea8bb. Read the comment docs.

@AbhinavTuli AbhinavTuli merged commit 29f6ecf into master Jan 19, 2021
@AbhinavTuli AbhinavTuli deleted the feature/dataset_name branch January 19, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants