You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some nuance to this:
I think I have found corner cases that reveal another bug in the original ava segmentation algorithm.
I only found this because of the pre-condition for Segments where we require that the offset of the last segment not be greater than the length of the Sound in samples.
So we probably want to keep that condition, to rule out that class of errors that could occur if we're not checking.
To do so without requiring that the Sound be around, we can solve the same way we're keeping the start_times / stop_times, etc.: add an attribute n_samples that we get from the sound, just like we get samplerate so we can convert from sample number to time. Then we will save n_samples in the json file representing the segments, just like we will save the samplerate. I need to think more about the name of the attribute but I think this solution generally will work.
Activity
Decouple Segments from Sound, fix #154
NickleDave commentedon Jun 2, 2024
Some nuance to this:
I think I have found corner cases that reveal another bug in the original ava segmentation algorithm.
I only found this because of the pre-condition for Segments where we require that the offset of the last segment not be greater than the length of the Sound in samples.
So we probably want to keep that condition, to rule out that class of errors that could occur if we're not checking.
start_times/stop_times, etc.: add an attributen_samplesthat we get from the sound, just like we getsamplerateso we can convert from sample number to time. Then we will saven_samplesin the json file representing the segments, just like we will save thesamplerate. I need to think more about the name of the attribute but I think this solution generally will work.Decouple Segments from Sound, fix #154
ENH/CLN: Post-NMAC 2024 GRS fixes (#189)