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

craffel / pretty-midi
68%

Build:
DEFAULT BRANCH: master
Repo Added 11 Oct 2016 02:15AM UTC
Files 6
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.2.7
  • 0.2.8
  • chiptunes
  • master
  • more_tests
  • tick_int
  • travis

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

Relevant lines Covered
Build:
Build:
903 RELEVANT LINES 616 COVERED LINES
1.36 HITS PER LINE
Source Files on master
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
125 master 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 f... push 01 Jun 2019 08:43PM UTC craffel travis-ci pending completion  
124 fix_p_roll_integrated Remove print statements Pull #169 01 Jun 2019 08:10PM UTC web-flow travis-ci pending completion  
123 fix_p_roll_integrated 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 ... Pull #169 01 Jun 2019 02:46AM UTC web-flow travis-ci pending completion  
121 master added duration as a property (#160) * added duration as a property * removed pep8 whitespace violation * removed pep8 violations push 24 Jan 2019 12:22AM UTC craffel travis-ci pending completion  
120 master removed pep8 violations Pull #160 23 Jan 2019 12:26AM UTC web-flow travis-ci pending completion  
117 master Fix get_beats and get_downbeats for compound meters * Fix 1/2 for #152. Fix in get_downbeats for compound meters * Fix 2/2 for #152. Fix in qpm_to_bpm for compound meters * Added compound meter tests (#153) * Travis check fixes (#153) ... push 05 Dec 2018 02:48AM UTC craffel travis-ci pending completion  
116 master Updated docstring for get_beats() Pull #153 05 Dec 2018 01:55AM UTC web-flow travis-ci pending completion  
115 master python2 force float division fix (#153) Pull #153 26 Nov 2018 01:47AM UTC web-flow travis-ci pending completion  
114 master Travis check fixes (#153) Pull #153 26 Nov 2018 01:37AM UTC web-flow travis-ci pending completion  
112 master Fix typo in docstring (#154) push 24 Nov 2018 07:40PM UTC craffel travis-ci pending completion  
See All Builds (79)
  • Repo on GitHub
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

© 2025 Coveralls, Inc