Changeset a88594d


Ignore:
Timestamp:
Oct 29, 2018, 3:26:54 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.