Changeset a88594d


Ignore:
Timestamp:
Oct 29, 2018, 3:26:54 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
c9c012e
Parents:
f0ce8aa3
Message:

[py] [slicing] add end of last region if missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    rf0ce8aa3 ra88594d  
    1919
    2020    if timestamps_end is not None:
    21         if len(timestamps_end) != len(timestamps):
     21        if len(timestamps_end) == len(timestamps) - 1:
     22            timestamps_end = timestamps_end + [_max_timestamp]
     23        elif len(timestamps_end) != len(timestamps):
    2224            raise ValueError("len(timestamps_end) != len(timestamps)")
    2325    else:
Note: See TracChangeset for help on using the changeset viewer.