From a25844ac71105a835f5792d7a88cc53e69e8ff5f Mon Sep 17 00:00:00 2001 From: Arno Solin Date: Wed, 13 Nov 2013 17:26:00 +0000 Subject: [PATCH] Round to 14 decimals to avoid problems. --- GPy/models/state_space.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/models/state_space.py b/GPy/models/state_space.py index e340e0e8..b3b70614 100644 --- a/GPy/models/state_space.py +++ b/GPy/models/state_space.py @@ -360,8 +360,8 @@ class StateSpace(Model): # Optimize for cases where time steps occur repeatedly else: - # Time discretizations - dt, _, index = np.unique(dt,True,True) + # Time discretizations (round to 14 decimals to avoid problems) + dt, _, index = np.unique(np.round(dt,14),True,True) # Allocate space for A and Q A = np.empty((n,n,dt.shape[0]))