dipaco / balu-python

Python implementation of Balu Toolbox by Domingo Mery (http://dmery.ing.puc.cl/index.php/balu/)
Other
5 stars 2 forks source link

balu.DataSelectionAndGeneration.Bds_nostratify not working on Python 3.6.1 #17

Open socampog opened 7 years ago

socampog commented 7 years ago
...
balu/DataSelectionAndGeneration/Bds_nostratify.py", line 35, in Bds_nostratify
    X1 = Xr[0:r, :]
TypeError: slice indices must be integers or None or have an __index__ method

A possible solution is to change r = np.floor(s * N) in source line 33, for either: