diff --git a/clmm/theory/_ccl_supported_versions.py b/clmm/theory/_ccl_supported_versions.py index 3fa3adaf9..9d6c62bf2 100644 --- a/clmm/theory/_ccl_supported_versions.py +++ b/clmm/theory/_ccl_supported_versions.py @@ -1,5 +1,5 @@ """@file _ccl_supported_versions.py Versions of CCL supported by the current CLMM version """ -VMIN = '2.7.1.dev10+gf81b59a4' -VMAX = '3' +VMIN = "2.7.1.dev10+gf81b59a4" +VMAX = "3" diff --git a/clmm/theory/ccl.py b/clmm/theory/ccl.py index 2bcdb4500..092c916ca 100644 --- a/clmm/theory/ccl.py +++ b/clmm/theory/ccl.py @@ -95,12 +95,11 @@ def __init__( self.set_cosmo(None) def _use_projected_quad(self, use_quad): - if hasattr(self.hdpm, 'projected_quad'): + if hasattr(self.hdpm, "projected_quad"): self.hdpm_opts["einasto"]["projected_quad"] = use_quad self._update_halo_density_profile() else: - raise NotImplementedError( - "projected_quad is not available on this version of CCL.") + raise NotImplementedError("projected_quad is not available on this version of CCL.") # Functions implemented by child class @@ -123,13 +122,12 @@ def _get_mass(self): return self.__mdelta_cor * self.cor_factor def _set_concentration(self, cdelta): - """"set concentration. Also sets/updates hdpm""" + """set concentration. Also sets/updates hdpm""" self.conc = ccl.halos.ConcentrationConstant(c=cdelta, mass_def=self.mdef) self.hdpm = self.hdpm_dict[self.halo_profile_model]( - concentration=self.conc, mass_def=self.mdef, - **self.hdpm_opts[self.halo_profile_model]) - self.hdpm.update_precision_fftlog( - padding_lo_fftlog=1e-4, padding_hi_fftlog=1e3) + concentration=self.conc, mass_def=self.mdef, **self.hdpm_opts[self.halo_profile_model] + ) + self.hdpm.update_precision_fftlog(padding_lo_fftlog=1e-4, padding_hi_fftlog=1e3) def _set_mass(self, mdelta): """set mass""" diff --git a/clmm/theory/parent_class.py b/clmm/theory/parent_class.py index 228c705dd..54fed1406 100644 --- a/clmm/theory/parent_class.py +++ b/clmm/theory/parent_class.py @@ -459,8 +459,7 @@ def use_projected_quad(self, use_quad): quad_vec instead of default FFTLog to calculate the surface density profile. """ if self.halo_profile_model != "einasto" or self.backend != "ccl": - raise NotImplementedError( - "This option is only available for the CCL Einasto profile.") + raise NotImplementedError("This option is only available for the CCL Einasto profile.") if self.validate_input: validate_argument(locals(), "use_quad", bool) self._use_projected_quad(use_quad)