Skip to content

Commit

Permalink
updating version info, docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Apr 26, 2017
1 parent f29b0d5 commit 9f79bca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ be easily consumed by statistical algorithms. Some desired features:
>>> p_chord = pumpp.task.SimpleChordTransformer(sr=sr, hop_length=hop_length)

>>> # Collect the operators in a pump
>>> P = pumpp.Pump(p_cqt, p_beat, p_chord)
>>> pump = pumpp.Pump(p_cqt, p_beat, p_chord)

>>> # Apply the extractors to generate training data
>>> data = P.transform(audio_f, jams_f)
>>> data = pump(audio_f=audio_f, jam=jams_fjams_f)

>>> # Or test data
>>> test_data = P.transform('/my/test/audio.ogg')
>>> test_data = pump(audio_f='/my/test/audio.ogg')

>>> # Or in-memory
>>> y, sr = librosa.load(audio_f)
>>> test_data = pump(y=y, sr=sr)
```
2 changes: 1 addition & 1 deletion pumpp/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def sample(self, data, interval):
Parameters
----------
data : dict
A data dict as produced by pumpp.transform
A data dict as produced by pumpp.Pump.transform
interval : slice
The time interval to sample
Expand Down
4 changes: 2 additions & 2 deletions pumpp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# -*- coding: utf-8 -*-
"""Version info"""

short_version = '0.1'
version = '0.1.5'
short_version = '0.2'
version = '0.2.0'

0 comments on commit 9f79bca

Please sign in to comment.