Skip to content
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 some more API classes (participant, session, dataset) #50

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

fabiocat93
Copy link
Collaborator

No description provided.

@fabiocat93 fabiocat93 added the enhancement New feature or request label Jun 4, 2024
@fabiocat93 fabiocat93 requested a review from wilke0818 June 4, 2024 19:08
@fabiocat93 fabiocat93 linked an issue Jun 4, 2024 that may be closed by this pull request
5 tasks
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 75.83333% with 29 lines in your changes missing coverage. Please review.

Project coverage is 61.81%. Comparing base (3ba1620) to head (7083fac).
Report is 1 commits behind head on audio_abstract_dtype.

Files Patch % Lines
src/senselab/utils/data_structures/dataset.py 69.09% 17 Missing ⚠️
src/senselab/utils/tasks/input_output.py 11.11% 8 Missing ⚠️
src/senselab/utils/hf.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           audio_abstract_dtype      #50      +/-   ##
========================================================
+ Coverage                 59.12%   61.81%   +2.69%     
========================================================
  Files                        36       38       +2     
  Lines                       932     1037     +105     
========================================================
+ Hits                        551      641      +90     
- Misses                      381      396      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@wilke0818 wilke0818 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's connect on making sure we can merge our Datasets together correctly but seems good generally. Do you know that the HuggingFace functionality works? Do we have tests for it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this pretty easily could've been a test file

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure that this in fact did become a test file but probably should limit use of these experiment files to keep the repo clean

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree. we can remove that scripts folder

metadata: Dict = Field(default={})

@field_validator("id", mode="before")
def set_id(cls, v: str) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this will ever get run because you have a default_factory if the id is not provided so probably not needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the default_factory is if you use it in a Dataset. Otherwise, you need some checks (and this is why we have the validator)

return False


class SenselabDataset(BaseModel):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like we made complimentary datasets (mine handles Audio/Video, yours has some base functions for the participants and sessions).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds amazing. If you want, we can make a coding session together tomorrow after lunch and marge all what we have

@fabiocat93 fabiocat93 merged commit 29b4dfc into audio_abstract_dtype Jun 5, 2024
4 checks passed
@fabiocat93 fabiocat93 deleted the utility_functions branch June 5, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: Internal architecture (data structures)
3 participants