Skip to content

Commit

Permalink
Update example collections for saving_and_loading guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Nov 23, 2023
1 parent 5ec8db8 commit 53b806e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/user_guide/1_saving_and_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
# This object allows you to access and analyze the annotations, along with
# their associated objects.

for task in nips4b_sample.annotated_clips:
for task in nips4b_sample.clip_annotations:
clip = task.clip
recording = clip.recording
print(
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/example_dataset.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.1.0","type":"dataset","created_on":"2023-11-21T15:57:28.083039","data":{"uuid":"b1096756-eea2-4489-9e6a-b98b559647bb","name":"test_dataset","description":"A test dataset","created_on":"2023-11-21T13:43:14.742002","recordings":[{"id":0,"uuid":"89957d47-f67d-4bfe-8352-bf0fe5a8ce3e","path":"recording1.wav","duration":10.0,"channels":1,"samplerate":44100,"time_expansion":10.0,"hash":"1234567890abcdef","date":"2021-01-01","time":"21:34:56","latitude":12.345,"longitude":34.567,"tags":[0,1,2],"features":{"SNR":10.0,"ACI":0.5},"notes":[{"uuid":"2931b864-43e4-4fb1-aae1-a214dccca6e3","message":"This is a note.","created_by":0,"is_issue":false,"created_on":"2023-11-21T13:43:14.742073"}],"owners":[1],"rights":null},{"id":1,"uuid":"bd30f886-3abb-475b-aacb-c7148a4d4420","path":"recording2.wav","duration":8.0,"channels":1,"samplerate":441000,"time_expansion":10.0,"hash":"234567890abcdef1","date":"2021-01-02","time":"19:34:56","latitude":13.345,"longitude":32.567,"tags":[3,4,5],"features":{"SNR":7.0,"ACI":0.3},"notes":[{"uuid":"713b6c15-0e3d-4cc5-acc6-3f1093209a40","message":"Unsure about the species.","created_by":0,"is_issue":false,"created_on":"2023-11-21T13:43:14.742147"}],"owners":[1],"rights":null}],"tags":[{"id":0,"key":"species","value":"Myotis myotis"},{"id":1,"key":"sex","value":"female"},{"id":2,"key":"behaviour","value":"foraging"},{"id":3,"key":"species","value":"Eptesicus serotinus"},{"id":4,"key":"sex","value":"male"},{"id":5,"key":"behaviour","value":"social calls"}],"users":[{"id":0,"uuid":"04ef3927-3a3d-40df-9d6e-2cc5e21482a0","username":null,"email":null,"name":"John Doe","institution":null},{"id":1,"uuid":"d6eb0862-a619-4919-992c-eb3625692c13","username":null,"email":"data.collector@soundevent.org","name":"Data Collector","institution":null}]}}
{"version":"1.1.0","created_on":"2023-11-23T10:58:23.582905","data":{"collection_type":"dataset","uuid":"b1096756-eea2-4489-9e6a-b98b559647bb","created_on":"2023-11-21T13:43:14.742002","recordings":[{"id":0,"uuid":"89957d47-f67d-4bfe-8352-bf0fe5a8ce3e","path":"recording1.wav","duration":10.0,"channels":1,"samplerate":44100,"time_expansion":10.0,"hash":"1234567890abcdef","date":"2021-01-01","time":"21:34:56","latitude":12.345,"longitude":34.567,"tags":[0,1,2],"features":{"SNR":10.0,"ACI":0.5},"notes":[{"uuid":"2931b864-43e4-4fb1-aae1-a214dccca6e3","message":"This is a note.","created_by":0,"is_issue":false,"created_on":"2023-11-21T13:43:14.742073"}],"owners":[1]},{"id":1,"uuid":"bd30f886-3abb-475b-aacb-c7148a4d4420","path":"recording2.wav","duration":8.0,"channels":1,"samplerate":441000,"time_expansion":10.0,"hash":"234567890abcdef1","date":"2021-01-02","time":"19:34:56","latitude":13.345,"longitude":32.567,"tags":[3,4,5],"features":{"SNR":7.0,"ACI":0.3},"notes":[{"uuid":"713b6c15-0e3d-4cc5-acc6-3f1093209a40","message":"Unsure about the species.","created_by":0,"is_issue":false,"created_on":"2023-11-21T13:43:14.742147"}],"owners":[1]}],"tags":[{"id":0,"key":"species","value":"Myotis myotis"},{"id":1,"key":"sex","value":"female"},{"id":2,"key":"behaviour","value":"foraging"},{"id":3,"key":"species","value":"Eptesicus serotinus"},{"id":4,"key":"sex","value":"male"},{"id":5,"key":"behaviour","value":"social calls"}],"users":[{"id":0,"uuid":"04ef3927-3a3d-40df-9d6e-2cc5e21482a0","name":"John Doe"},{"id":1,"uuid":"d6eb0862-a619-4919-992c-eb3625692c13","email":"data.collector@soundevent.org","name":"Data Collector"}],"name":"test_dataset","description":"A test dataset"}}
Loading

0 comments on commit 53b806e

Please sign in to comment.