Skip to content

Commit c19c06a

Browse files
committed
Address in Py35
1 parent f60139c commit c19c06a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ f0, sp, ap, pyDioOpt = pw.wav2world(x, fs)
4545
<br/>
4646

4747
## II. Installation
48-
### Environment
49-
Linux Ubuntu 14.04 <br/>
50-
Python 2.7.6 on <br/>
51-
Cython 0.24 (or later versions; required)
52-
Matplotlib (optional; for demo.py only)
48+
### Environment/Dependencies
49+
- Linux Ubuntu 14.04/16.04
50+
- Python 2.7.6/3.5
51+
- Cython 0.24 (or later versions; required)
52+
- Scipy
53+
- Numpy
54+
- argparse
55+
- Matplotlib (optional; for demo.py only)
5356

5457
### Installation procedures
5558
```bash

demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import pyworld as pw
23
import os
34
from shutil import rmtree
@@ -46,7 +47,6 @@ def savefig(filename, figlist, log=True):
4647
elif len(f.shape) == 2:
4748
Nsmp, dim = figlist[0].shape
4849
figsize=(h * float(Nsmp) / dim, len(figlist) * h)
49-
print figsize
5050
plt.figure(figsize=figsize)
5151
for i, f in enumerate(figlist):
5252
plt.subplot(n, 1, i+1)
@@ -99,7 +99,7 @@ def main(args):
9999
savefig('test/ap.png', [_ap, ap], log=False)
100100
savefig('test/f0.png', [_f0, f0])
101101

102-
print 'Please check "test" directory for output files'
102+
print('Please check "test" directory for output files')
103103

104104

105105
if __name__ == '__main__':

0 commit comments

Comments
 (0)