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

0.10.1 release #895

Merged
merged 11 commits into from
Oct 25, 2023
Merged

0.10.1 release #895

merged 11 commits into from
Oct 25, 2023

Conversation

sammlapp
Copy link
Collaborator

bug fixes to 0.10.0

louisfh and others added 11 commits October 23, 2023 09:41
previously, return value had values beyond [0,1] even after rescale since rescaling did not clip the values. Eg rescale with range [-100,-20] to 0,1 with -inf value still has -inf value in returned value
now passes any kwargs to Spectrogram.to_image, including range parameter. Added test that range performs correctly

resolves to_tensor action in pipeline does not expose all arguments of Spectrogram.to_image #881
...in standard columns of BoxedAnnotations
resolves BoxedAnnotations.subset does not retain audio_files #872

used a _spawn method like Audio and Spectrogram classes, added __slots__, and use the spawn method for out-of-place methods that create a new BoxedAnnotations object (Spawn retains unmodified attributes and will work even if the class is sub-classed)

also added missing self.df.copy() lines to ensure the original object's .df is never modified during an out-of-place method that creates a new object
allows trimming by specific sample positions

resolves #879 Audio class: method for trimming to specific sample positions #879

Audio.trim() now calls trim_samples()

includes tests
@sammlapp sammlapp merged commit f4dbc7b into master Oct 25, 2023
11 of 12 checks passed
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