# Question about time series clustering

**URL:** https://discourse.julialang.org/t/question-about-time-series-clustering/42895
**Category:** General Usage
**Tags:** package
**Created:** [July 11, 2020, 1:58pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895 "2020-07-11T13:58:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 1:58pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/1 "2020-07-11T13:58:32Z")

</div>

```julia
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 |

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/0/20501b3cd408f25bae0c70735fd31913bae29277.png)  
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!) 😣

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [July 11, 2020, 2:28pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/2 "2020-07-11T14:28:48Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [July 11, 2020, 2:31pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/3 "2020-07-11T14:31:37Z")

</div>

[https://github.com/holgerteichgraeber/TimeSeriesClustering.jl/blob/a783ff1410e48919bf12e05172dd1da8e52acb19/src/utils/load\_data.jl#L161](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

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 2:31pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/4 "2020-07-11T14:31:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [July 11, 2020, 2:33pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/5 "2020-07-11T14:33:26Z")

</div>

Consider also using [TimeSeries.jl](https://github.com/JuliaStats/TimeSeries.jl) with one of the clustering packages [like Clustering.jl](https://juliaobserver.com/packages/Clustering)

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 2:34pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/6 "2020-07-11T14:34:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [July 11, 2020, 2:36pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/7 "2020-07-11T14:36:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 2:36pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/8 "2020-07-11T14:36:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [July 11, 2020, 2:38pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/9 "2020-07-11T14:38:33Z")

</div>

```julia
   _ _ _(_)_ | 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…

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 2:38pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/10 "2020-07-11T14:38:42Z")

</div>

ok,I will try it.thank you!

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [July 11, 2020, 2:40pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/11 "2020-07-11T14:40:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 2:41pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/12 "2020-07-11T14:41:33Z")

</div>

Ok, thank you for your advice

---

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [July 11, 2020, 3:00pm UTC](https://discourse.julialang.org/t/question-about-time-series-clustering/42895/13 "2020-07-11T15:00:22Z")

</div>

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