Skip to content

Commit

Permalink
Correct attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalloni committed Nov 6, 2024
1 parent caba78b commit 5fdfe05
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions soliket/bias/bias.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Bias(Theory):
extra_args: Optional[dict]
params: dict

enforce_types: bool = True
_enforce_types: bool = True

_logz = np.linspace(-3, np.log10(1100), 150)
_default_z_sampling = 10 ** _logz
Expand Down Expand Up @@ -99,7 +99,7 @@ class Linear_bias(Bias):
Has one free parameter, :math:`b_\mathrm{lin}` (``b_lin``).
"""

enforce_types: bool = True
_enforce_types: bool = True
params: dict

def calculate(self, state: dict, want_derived: bool = True,
Expand Down
2 changes: 1 addition & 1 deletion soliket/cash/cash.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CashCLikelihood(Likelihood):
name: str = "Cash-C"
datapath: Optional[str] = None

enforce_types: bool = True
_enforce_types: bool = True

def initialize(self):
x, N = self._get_data()
Expand Down
2 changes: 1 addition & 1 deletion soliket/ccl/ccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class CCL(Theory):
z: Union[float, List[float], np.ndarray]
extra_args: Optional[dict]

enforce_types: bool = True
_enforce_types: bool = True

_logz = np.linspace(-3, np.log10(1100), 150)
_default_z_sampling = 10 ** _logz
Expand Down
2 changes: 1 addition & 1 deletion soliket/cosmopower/cosmopower.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
class CosmoPower(BoltzmannBase):
"""A CosmoPower Network wrapper for Cobaya."""

enforce_types: bool = True
_enforce_types: bool = True

def initialize(self):

Expand Down
2 changes: 1 addition & 1 deletion soliket/gaussian/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GaussianLikelihood(Likelihood):
ncovsims: Optional[int] = None
provider: Provider

enforce_types: bool = True
_enforce_types: bool = True

def initialize(self):
x, y = self._get_data()
Expand Down
2 changes: 1 addition & 1 deletion soliket/halo_model/halo_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class HaloModel(Theory):
z: Union[float, List[float], np.ndarray]
extra_args: Optional[dict]

enforce_types: bool = True
_enforce_types: bool = True

_logz = np.linspace(-3, np.log10(1100), 150)
_default_z_sampling = 10**_logz
Expand Down
2 changes: 1 addition & 1 deletion soliket/poisson/poisson.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PoissonLikelihood(Likelihood):
data_path: Optional[str] = None
columns: Optional[List[str]] = None

enforce_types: bool = True
_enforce_types: bool = True

def initialize(self):
catalog = self._get_catalog()
Expand Down

0 comments on commit 5fdfe05

Please sign in to comment.