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

AudioSample default argument values cause error when __repr__ called. #727

Closed
louisfh opened this issue May 16, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@louisfh
Copy link
Member

louisfh commented May 16, 2023

AudioSample does not require arguments for init method, and will use default values of start_time = None and duration=None. However these will raise errors when AudioSample.__repr__ is called, for example in an ipython environment. This is because it tries to calculate the "end time" for printing by calculating start_time + duration.

Raising

TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

start_time=None,
duration=None,
labels=None,

@louisfh louisfh changed the title AudioSample requires AudioSample default argument values cause error when __repr__ called. May 16, 2023
@louisfh louisfh added the bug Something isn't working label May 16, 2023
@sammlapp sammlapp added the resolved_in_branch The issue has been resolved in a feat/issue branch but not merged into develop label May 26, 2023
@sammlapp sammlapp added resolved_in_develop The issue has been resolved in the develop branch but not in master and removed resolved_in_branch The issue has been resolved in a feat/issue branch but not merged into develop labels Jun 1, 2023
@sammlapp sammlapp removed the resolved_in_develop The issue has been resolved in the develop branch but not in master label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants