From 903b2b8323db622cb45b59543a099ea1a13c1a03 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Fri, 29 Apr 2022 22:14:27 +0200 Subject: [PATCH] Change type of property to `vector<double>` This allows readability of the property in graphml format. As vector of double is more specific than python object, I suspect this commit also makes the code more efficient. See also commit c7f7fd46. --- cost_function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cost_function.py b/cost_function.py index 571bc8aa..4fc4ff2a 100755 --- a/cost_function.py +++ b/cost_function.py @@ -110,8 +110,8 @@ t1 = time.perf_counter() timings.write(f"loading: {t1 - t0:.0f} s\n") t0 = t1 -g.vp['pos_first'] = g.new_vp('object') -g.vp['pos_last'] = g.new_vp('object') +g.vp['pos_first'] = g.new_vp('vector<double>') +g.vp['pos_last'] = g.new_vp('vector<double>') g.vp['first_av_rad'] = g.new_vp('float') g.vp['first_av_ros'] = g.new_vp('float') g.vp['last_av_rad'] = g.new_vp('float') -- GitLab