Skip to content

Commit

Permalink
Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 committed Aug 12, 2022
1 parent 16ad8a8 commit c17fef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kinisi/diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def model_variance(dt: np.ndarray, a: float) -> np.ndarray:
popt, _ = curve_fit(model_variance, self.dt[max_ngp:], self._v[max_ngp:])
model_v = model_variance(self.dt[max_ngp:], *popt)

self._covariance_matrix = self.populate_covariance_matrix(model_v, self._n_i)
self._covariance_matrix = self.populate_covariance_matrix(model_v, self._n_i[max_ngp:])
self._covariance_matrix = find_nearest_positive_definite(self._covariance_matrix)

mv = multivariate_normal(self._n[max_ngp:], self._covariance_matrix, allow_singular=True)
Expand Down

0 comments on commit c17fef5

Please sign in to comment.