scikit-mobility / tutorials

Repo for the material used during conference tutorial and talks
63 stars 23 forks source link

TypeError: generate() got an unexpected keyword argument 'verbose' #1

Open johannesmichael opened 4 years ago

johannesmichael commented 4 years ago

In 3_trajectory_models_skmob_tutorial.ipynb I get this error when running

tdf = depr.generate(start_time, end_time, tessellation, relevance_column='population', n_agents=100, od_matrix=None, verbose=True)

`TypeError Traceback (most recent call last)

in 1 tdf = depr.generate(start_time, end_time, tessellation, 2 relevance_column='population', ----> 3 n_agents=100, od_matrix=None, verbose=True) TypeError: generate() got an unexpected keyword argument 'verbose' Working on WIN 10 with Miniconda
gbarlacchi commented 4 years ago

Thanks for noticed that. The code probably refers to a previous version. Could you please try to remove verbose arg?

Here the documentation for the latest version https://scikit-mobility.github.io/scikit-mobility/reference/models.html#skmob.models.epr.DensityEPR

johannesmichael commented 4 years ago

Then I get

AxisError: axis 1 is out of bounds for array of dimension 1