-
Notifications
You must be signed in to change notification settings - Fork 155
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
enforce strictly increasing values in old_time and new_time #145
Merged
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
988e8a3
enforce strictly increasing values in old_time and new_time
areeves87 6244c17
update monotonicity check; move warnings out of fxn
areeves87 0e7e5b9
strictly increase original_times, monotonic incr new_times
areeves87 ac9936b
remove trailing whitespace for pep8
areeves87 2dee3db
update new_times indices if original_times fails check
areeves87 c0c7474
use np.unique to check and enforce original_time strictly increasing
areeves87 6e8d88d
fix pep8 formatting issues.
areeves87 c524fa1
fix pep8 formatting issues.
areeves87 87b0576
fix pep8 formatting issues.
areeves87 9c8e28a
fix pep8 formatting issues.
areeves87 ca3a226
fix pep8 formatting issues.
areeves87 69ad544
convert new_times to array before subsetting with unique_idx
areeves87 21af894
so that we test adjust_times with appropriate event times
areeves87 445f9ec
so that test_adjust_times() tests the correct values
areeves87 80eb650
update tests for adjust_times
areeves87 d2628d3
comment out some tests in adjust_times
areeves87 27946a5
PrettyMIDI.adjust_times enforces strict increase in original_times an…
areeves87 937e7ac
prepare to squash commits
areeves87 174e2b1
Merge branch 'master' of https://github.com/areeves87/pretty-midi
areeves87 4bf7dd9
passes all tests
areeves87 24f584b
passes all tests and pep8
areeves87 f471ebd
tolerate floating point error in time signature calculation
areeves87 a20c358
maintain consistent decimal usage
areeves87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Can you retain the decimal in this 6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Good catch.