diff --git a/clmm/theory/ccl.py b/clmm/theory/ccl.py index e95271031..7fcff5511 100644 --- a/clmm/theory/ccl.py +++ b/clmm/theory/ccl.py @@ -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}."