LRydin / KramersMoyal

kramersmoyal: Kramers-Moyal coefficients for stochastic data of any dimension, to any desired order
MIT License
67 stars 12 forks source link

TypeError raised by test #6

Closed Shibabrat closed 4 years ago

Shibabrat commented 5 years ago

I ran into the following error while executing one of the tests in test directory. Maybe I'm missing something and the authors can either fix or add instruction to specify usage. Other tests ran just fine.

run test/binning_test.py

TypeError Traceback (most recent call last) ~/Documents/review-JOSS/KramersMoyal/test/binning_test.py in 15 16 hist1 = [np.histogramdd(timeseries, bins=bins, ---> 17 weights=w, density=True)[0] for w in weights.T] 18 19 hist2 = histogramdd(timeseries, bins=bins,

~/Documents/review-JOSS/KramersMoyal/test/binning_test.py in (.0) 15 16 hist1 = [np.histogramdd(timeseries, bins=bins, ---> 17 weights=w, density=True)[0] for w in weights.T] 18 19 hist2 = histogramdd(timeseries, bins=bins,

TypeError: histogramdd() got an unexpected keyword argument 'density'

fmeirinhos commented 5 years ago

Quite strange that you are getting that error since histogramdd has density as a keyword.

Is your repo matching the GitHub repository?

Shibabrat commented 4 years ago

@fmeirinhos perhaps my local repo was from the time of initial submission and the current version doesn't give me the error. Thanks. fixes #6

from kramersmoyal import km, kernels

In [3]: run ./test/binning_test.py
Binning in 1D: passed Binning in 2D: passed Binning in 3D: passed