Skip to content

Commit

Permalink
Update heracles/fields.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Tessore <[email protected]>
  • Loading branch information
JaimeRZP and ntessore authored Nov 27, 2024
1 parent 9b87c9d commit 659b0fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions heracles/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ async def __call__(
val /= wbar

# compute bias from variance (per object)
variance = var / wmean**2
neff = ngal / (4 * np.pi * fsky)
variance = var / w2mean
deff = w2mean / wmean**2
neff = ngal / (4 * np.pi * fsky) / deff
bias = fsky * variance / neff

# set metadata of array
Expand Down

0 comments on commit 659b0fb

Please sign in to comment.