Skip to content

Commit

Permalink
Fix for _fast_chi_square
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalloni committed Sep 5, 2024
1 parent ff79ce9 commit 4700060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soliket/gaussian/gaussian_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, List, Optional, Sequence, Tuple
import numpy as np
from cobaya.likelihoods.base_classes import _fast_chi_square
from cobaya import functions


class GaussianData:
Expand All @@ -14,7 +14,7 @@ class GaussianData:
inv_cov: np.ndarray # inverse covariance matrix
ncovsims: Optional[int] # number of simulations used to estimate covariance

_fast_chi_squared = _fast_chi_square()
_fast_chi_squared = staticmethod(functions.chi_squared)

def __init__(self, name: str, x: Sequence[float], y: Sequence[float], cov: np.ndarray,
ncovsims: Optional[int] = None) -> None:
Expand Down

0 comments on commit 4700060

Please sign in to comment.