From aa77160428a2c060bc9e92ff311132fd37de9121 Mon Sep 17 00:00:00 2001 From: Marco Tezzele Date: Mon, 21 May 2018 12:34:51 +0200 Subject: [PATCH] fix initialization shape of original_control_points --- pygem/params/rbfparams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygem/params/rbfparams.py b/pygem/params/rbfparams.py index 10a3d95..a0014d5 100644 --- a/pygem/params/rbfparams.py +++ b/pygem/params/rbfparams.py @@ -85,7 +85,7 @@ def read_parameters(self, filename='parameters_rbf.prm'): ctrl_points = config.get('Control points', 'original control points') lines = ctrl_points.split('\n') - self.original_control_points = np.zeros((self.n_control_points, 3)) + self.original_control_points = np.zeros((len(lines), 3)) for line, i in zip(lines, list(range(0, self.n_control_points))): values = line.split() self.original_control_points[i] = np.array(