Hi Nils,
the function windkit.bwc_from_timeseries needs the first argument to be positional only, i.e. it cannot be used as
windkit.bwc_from_timeseries(ds=ds,...
But you are right, the error message is confusing. In the next release of windkit we will include a more meaningful error message, something like this
TypeError: bwc_from_timeseries() got some positional-only arguments passed as keyword arguments: 'ds'
Also I see you have a piece of code to create a dummy time series. In the next release of windkit we include a function to create dummy time series wind climate datasets, winkit.empty.empty_tswc, like this
from windkit import empty
import pandas as pd
ds_location = wk.create_dataset(west_east=0.0,south_north=0.0,height=90.0,crs=4236)
time_values = pd.date_range("2001-01-01", "2010-01-01", freq="10min", inclusive="left")
ds_timeseries = wk.empty.empty_tswc(ds_location,time_values)
you can use other available functions in the "windkit.empty" module to create dummy binned wind climates, weibull wind climates, etc. I hope you find them useful.
best,
David Azócar