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

craffel / pretty-midi / 125
68%

Build:
DEFAULT BRANCH: master
Ran 01 Jun 2019 08:43PM UTC
Jobs 2
Files 6
Run time 8s
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
125

push

travis-ci

craffel
Fix integrated piano roll division by zero (#169)

* 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

* Remove print statements

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 125.1 01 Jun 2019 08:43PM UTC 0
68.22
Travis Job 125.1
2 125.2 01 Jun 2019 08:43PM UTC 0
68.22
Travis Job 125.2
Source Files on build 125
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #125
  • 78e33ab1 on github
  • Prev Build on 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