Am 29.08.19 um 10:59 schrieb lenarpooo:
> Thanks, but I'm still a bit confused as ss[10][v] is an array of length 10,
> does it mean that the whole vector represents a single state for v? And when
> I try to copy other time series in ss
>
> sss=[]
> for i in range(200):
> vpp=gp.new_vp("vector<double>")
> for v in gp.get_vertices():
> x = np.array(ts[i])[0][v]
> vpp[v]=np.array([x])
> sss.append(vpp)
>
> where ts[i] is each time series in numpy.array, it reports the error.
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/t496178/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7_2019-08-29_%E4%B8%8B%E5%8D%884.png>
>
>
Ah, sorry it is fact transposed. In the original example, ss is a list
of many time series. Each one is a vector-value property map, containing
for each node its own time series.
(BTW, please don't post images of error messages which are just text.
Just post the text.)
Best,
Tiago
--
Tiago de Paula Peixoto <[email protected]>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool