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

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

Build:
Build:
LAST BUILD BRANCH: fix_p_roll_integrated
DEFAULT BRANCH: master
Ran 01 Jun 2019 02:46AM UTC
Files 6
Run time 0s
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

01 Jun 2019 02:44AM UTC coverage: 68.217% (+0.8%) from 67.444%
123.1

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

616 of 903 relevant lines covered (68.22%)

0.68 hits per line

Source Files on job 123.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 97
  • Travis Job 123.1
  • a4794f1d on github
  • Prev Job for on fix_p_roll_integrated (#121.1)
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