-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce strictly increasing values in adjust_times
Resolves #126. * enforce strictly increasing values in old_time and new_time * update monotonicity check; move warnings out of fxn * strictly increase original_times, monotonic incr new_times * remove trailing whitespace for pep8 * update new_times indices if original_times fails check * use np.unique to check and enforce original_time strictly increasing * fix pep8 formatting issues. * fix pep8 formatting issues. * fix pep8 formatting issues. * fix pep8 formatting issues. * fix pep8 formatting issues. * convert new_times to array before subsetting with unique_idx * so that we test adjust_times with appropriate event times * so that test_adjust_times() tests the correct values * update tests for adjust_times * comment out some tests in adjust_times * PrettyMIDI.adjust_times enforces strict increase in original_times and monotonic increase in new_times * prepare to squash commits * passes all tests * passes all tests and pep8 * tolerate floating point error in time signature calculation * maintain consistent decimal usage
- Loading branch information
Showing
2 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters