Skip to content

Commit

Permalink
fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Aguena committed Nov 19, 2024
1 parent 92dfa4b commit b78bd7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clmm/dataops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data operation for polar/azimuthal averages in radial bins and weights"""

import warnings
import numpy as np
from astropy.coordinates import SkyCoord
Expand Down Expand Up @@ -607,6 +608,7 @@ def make_radial_profile(
return profile_table, binnumber
return profile_table


def not_nan_average(values, axis=0, weights=None):
"""Computes averages using only not nan values
Expand All @@ -631,6 +633,7 @@ def not_nan_average(values, axis=0, weights=None):
_weights[np.isnan(values)] = 0
return np.average(_values, axis=axis, weights=_weights)


def make_stacked_radial_profile(angsep, weights, components):
"""Compute stacked profile, and mean separation distances.
Expand Down

0 comments on commit b78bd7e

Please sign in to comment.