Skip to content

Commit 210088b

Browse files
committed
fmt code
1 parent ad4f294 commit 210088b

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

clmm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" CLMM is a cluster mass modeling code. """
1+
"""CLMM is a cluster mass modeling code."""
22

33
from .gcdata import GCData
44
from .galaxycluster import GalaxyCluster

clmm/cosmology/cluster_toolkit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def _eval_da_z1z2_core(self, z1, z2):
9191
def _eval_sigma_crit_core(self, z_len, z_src):
9292
# Constants
9393
clight_pc_s = const.CLIGHT_KMS.value * 1000.0 / const.PC_TO_METER.value
94-
gnewt_pc3_msun_s2 = (
95-
const.GNEWT.value * const.SOLAR_MASS.value / const.PC_TO_METER.value**3
96-
)
94+
gnewt_pc3_msun_s2 = const.GNEWT.value * const.SOLAR_MASS.value / const.PC_TO_METER.value**3
9795

9896
d_l = self._eval_da_z1z2_core(0, z_len)
9997
d_s = self._eval_da_z1z2_core(0, z_src)

clmm/theory/ccl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class CCLCLMModeling(CLMModeling):
5050
conc: ccl.halos.ConcentrationConstant, None
5151
Internal ConcentrationConstant object
5252
"""
53+
5354
# pylint: disable=too-many-instance-attributes
5455

5556
def __init__(

clmm/theory/cluster_toolkit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class CTCLMModeling(CLMModeling):
5656
hdpm_dict: dict
5757
Dictionary with the definitions for profile
5858
"""
59+
5960
# pylint: disable=too-many-instance-attributes
6061
# pylint: disable=abstract-method
6162

clmm/theory/miscentering.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def integrand_surface_density_einasto(r_par, theta, r_proj, r_mis, r_s, alpha_ei
6666
"""
6767
# Projected surface mass density element for numerical integration
6868
r_norm = (
69-
np.sqrt(r_par**2.0 + r_proj**2.0 + r_mis**2.0 - 2.0 * r_proj * r_mis * np.cos(theta))
70-
/ r_s
69+
np.sqrt(r_par**2.0 + r_proj**2.0 + r_mis**2.0 - 2.0 * r_proj * r_mis * np.cos(theta)) / r_s
7170
)
7271

7372
return np.exp(-2.0 * (r_norm**alpha_ein - 1.0) / alpha_ein)

clmm/theory/numcosmo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class NumCosmoCLMModeling(CLMModeling):
3838
hdpm_dict: dict
3939
Dictionary with the definitions for profile
4040
"""
41+
4142
# pylint: disable=too-many-instance-attributes
4243
# pylint: disable=abstract-method
4344

clmm/utils/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Provide a consistent set of constants to use through CLMM """
1+
"""Provide a consistent set of constants to use through CLMM"""
22

33
from enum import Enum
44

0 commit comments

Comments
 (0)