-
Notifications
You must be signed in to change notification settings - Fork 19
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
Adding loader for DCASE 2023 Task-2 #134
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #134 +/- ##
==========================================
+ Coverage 98.69% 98.72% +0.03%
==========================================
Files 28 29 +1
Lines 2447 2515 +68
==========================================
+ Hits 2415 2483 +68
Misses 32 32 |
Hi! Is it ready to review? @tanmayy24 |
Yes! It's ready for review now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, thanks @tanmayy24, looks good to me! Minor changes requested, basically a minor documentation thing and a missing test, let's see if it can be added. The rest looks good to me!
docs/source/soundata.rst
Outdated
@@ -19,6 +19,13 @@ Dataset Loaders | |||
.. automodule:: soundata.datasets.marco | |||
:members: | |||
:inherited-members: | |||
|
|||
DCASE23-Task2 | |||
^^^^^^^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finish line!
soundata/datasets/dcase23_task2.py
Outdated
# Check for file existence | ||
if not os.path.exists(metadata_add_train_path): | ||
raise FileNotFoundError( | ||
f"Additional training metadata for {machine} not found. Did you run .download()?" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we test that?
970ac13
to
b40286f
Compare
Title
Please use the following title: "Adding loader for MyDATASET". If your pull request is work in progress, change your title to "[WIP] Adding loader for MyDATASET" to avoid reviews while the loader is not ready.
Description
Please include the following information at the top level docstring for the dataset's module mydataset.py:
Dataset loaders checklist:
scripts/
, e.g.make_my_dataset_index.py
, which generates an index file.soundata/indexes/
e.g.my_dataset_index.json
.soundata/my_dataset.py
.tests/
, e.g.test_my_dataset.py
.docs/source/soundata.rst
anddocs/source/quick_reference.rst
.black
,flake8
andmypy
(see Running your tests locally).tests/test_full_dataset.py
on your dataset.If your dataset is not fully downloadable there are two extra steps you should follow:
pytest -s tests/test_full_dataset.py --local --dataset my_dataset
once on your dataset locally and confirmed it passes.Please-do-not-edit flag
To reduce friction, we will make commits on top of contributor's pull requests by default unless they use the
please-do-not-edit
flag. If you don't want this to happen don't forget to add the flag when you start your pull request.