• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

craffel / pretty-midi / 123
68%
master: 68%

Build:
Build:
LAST BUILD BRANCH: fix_p_roll_integrated
DEFAULT BRANCH: master
Ran 01 Jun 2019 02:46AM UTC
Jobs 2
Files 6
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
123

Pull #169

travis-ci

web-flow
Fix integrated piano roll division by zero

When supplying a time array to piano roll, if the time array
exceeds the length of the "native" piano roll generated based
on when the last note finishes, the mean of empty arrays is
computed, resulting in warnings and populating the outputted
piano roll with nan. Similarly, if the time array has a greater
sampling rate than the "native" piano roll, more empty arrays
are generated, resulting in nan when numpy.mean is computed.

- Fixed the above issues as long as time array is increasing
  and greater than or equal to 0.
- Added unit test for the fix
- Made casting to integer explicit in instrument.py to stop
  the numpy deprecation warning
Pull Request #169: Fix integrated piano roll division by zero

5 of 5 new or added lines in 1 file covered. (100.0%)

616 of 903 relevant lines covered (68.22%)

1.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 123.1 01 Jun 2019 02:46AM UTC 0
68.22
Travis Job 123.1
2 123.2 01 Jun 2019 02:46AM UTC 0
68.22
Travis Job 123.2
Source Files on build 123
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #123
  • Pull Request #169
  • PR Base - master (#121)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc