Skip to content

Commit 5df740f

Browse files
committed
Prepare for ccl new minor versions
1 parent ce9aa53 commit 5df740f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clmm/theory/ccl.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
# Check which versions of ccl are currently supported
1414
from . import _ccl_supported_versions
1515

16-
if parse(ccl.__version__) < parse(_ccl_supported_versions.VMIN) or parse(ccl.__version__) > parse(
17-
_ccl_supported_versions.VMAX
18-
):
16+
if (parse(ccl.__version__) < parse(_ccl_supported_versions.VMIN)
17+
or parse(ccl.__version__).major > parse(_ccl_supported_versions.VMAX).major):
1918
raise EnvironmentError(
2019
f"Current CCL version ({ccl.__version__}) not supported by CLMM. "
2120
f"It must be between {_ccl_supported_versions.VMIN} and {_ccl_supported_versions.VMAX}."

0 commit comments

Comments
 (0)