abcde
July 11, 2020, 1:58pm
1
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!)
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.
jling
July 11, 2020, 2:31pm
3
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
abcde
July 11, 2020, 2:31pm
4
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
abcde
July 11, 2020, 2:34pm
6
thank you !!! Is there any solution for this problem?
jling
July 11, 2020, 2:36pm
7
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.
abcde
July 11, 2020, 2:36pm
8
thanks!Mainly I am studying the power system operation mode clustering related issues, this Pkg is very appropriate
jling
July 11, 2020, 2:38pm
9
_ _ _(_)_ | 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…
abcde
July 11, 2020, 2:38pm
10
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 .
abcde
July 11, 2020, 2:41pm
12
Ok, thank you for your advice
abcde
July 11, 2020, 3:00pm
13
I have tried it ,Found that Version 1.3 Julia can run this code!thank you
1 Like