Skip to content

Commit

Permalink
Prepare for ccl new minor versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 committed Mar 5, 2024
1 parent afa77f0 commit ddddc16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clmm/theory/ccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
# Check which versions of ccl are currently supported
from . import _ccl_supported_versions

if parse(ccl.__version__) < parse(_ccl_supported_versions.VMIN) or parse(ccl.__version__) > parse(
_ccl_supported_versions.VMAX
):
if (parse(ccl.__version__) < parse(_ccl_supported_versions.VMIN)
or parse(ccl.__version__).major > parse(_ccl_supported_versions.VMAX).major):
raise EnvironmentError(
f"Current CCL version ({ccl.__version__}) not supported by CLMM. "
f"It must be between {_ccl_supported_versions.VMIN} and {_ccl_supported_versions.VMAX}."
Expand Down

0 comments on commit ddddc16

Please sign in to comment.