Question about time series clustering

using TimeSeriesClustering
data_path=normpath(joinpath(dirname(@__FILE__),"..","数据","测试数据.csv"))
#ts_input_data = load_timeseries_data(data_path;region="none", T=24, years=[2016])
ts_input_data = load_timeseries_data(data_path; T=24, years=[2016])

This is the test data:

Timestamp Year col1 col2
2015.1.1 2015 1 2
2015.1.2 2015 2 4
2015.1.3 2015 3 6
2015.1.4 2015 4 8
2015.1.5 2015 5 10
2015.1.6 2015 6 12
2015.1.7 2015 7 14
2015.1.8 2015 8 16
2015.1.9 2015 9 18
2015.1.10 2015 10 20


ERROR: LoadError: MethodError: objects of type Bool are not callable
I’m following the Github tutorial completely. Why do I still report an error?The code has been modified for a long time, please help me, thank you!(This question is driving me crazy!) :persevere:

It seems to be a bug in that package. You have done nothing wrong.
I noticed that you raised this issue for the package. There is little more to do.

https://github.com/holgerteichgraeber/TimeSeriesClustering.jl/blob/a783ff1410e48919bf12e05172dd1da8e52acb19/src/utils/load_data.jl#L161

you can see that error is an argument passed to the function (L 152, default to true as a Bool) and the package is calling this here…

I see the author hasn’t updated in 6 months and looks like they are busy with their papers / PhD graduation recently

Thank you anyway!If so, I think I should contact the author of the Pkg and ask if there is a solution.

Consider also using TimeSeries.jl with one of the clustering packages like Clustering.jl

1 Like

thank you !!! Is there any solution for this problem?

well… you can ]dev the package and replace that error with something else, or, use an earlier version of Julia and DataFrames.jl (not sure which is the problem) that probably worked for the author back in 2019.

thanks!Mainly I am studying the power system operation mode clustering related issues, this Pkg is very appropriate

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.0 (2018-08-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> f(; error=true) = typeof(error)
f (generic function with 1 method)

julia> f()
Bool

looks like it never should have worked…

ok,I will try it.thank you!

You may be able to use the computational parts of the package after you load your data using some other package.

Ok, thank you for your advice

I have tried it ,Found that Version 1.3 Julia can run this code!thank you

1 Like