Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYangyao committed Jun 8, 2024
1 parent 20a60c7 commit 4629201
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyhipp"
version = "0.2.2"
version = "0.2.3"
authors = [
{ name="Yangyao Chen", email="yangyaochen.astro@foxmail.com" },
]
Expand Down
4 changes: 2 additions & 2 deletions src/pyhipp/astro/cosmology/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def __init__(self, data_file: Path, model: LambdaCDM) -> None:
def to_simple_repr(self) -> dict:
return {
'data_file': str(self.data_file),
'interp_detail': self.interp_detail,
'__interp': self.__interp,
}

def rho_vir_mean(self, f: np.ndarray = 200.0,
Expand Down Expand Up @@ -334,7 +334,7 @@ def dlg_sigma_dlg_m(self, lg_m: np.ndarray) -> np.ndarray:
return self.__interp['f_dlg_sigma_dlg_m_at_lg_m'](lg_m)

def lg_delta_c(self, z: np.ndarray) -> np.ndarray:
return self['f_lg_delta_c_at_z'](z)
return self.__interp['f_lg_delta_c_at_z'](z)

@cached_property
def __interp(self) -> dict[str, Callable | dict]:
Expand Down

0 comments on commit 4629201

Please sign in to comment.