Skip to content

Commit

Permalink
Merge branch 'issue/13/create-cosmos-example' of github.com:LSSTDESC/…
Browse files Browse the repository at this point in the history
…rail_lephare into issue/13/create-cosmos-example
  • Loading branch information
Raphael Shirley committed May 17, 2024
2 parents 8dcefb3 + 72be269 commit ec05eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rail/estimation/algos/lephare.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _rail_to_lephare_input(data, mag_cols, mag_err_cols):
mask &= input[mag_err_cols[n]] > 0
mask &= ~np.isnan(input[mag_err_cols[n]])
context += mask * 2**n

Check warning on line 302 in src/rail/estimation/algos/lephare.py

View check run for this annotation

Codecov / codecov/patch

src/rail/estimation/algos/lephare.py#L298-L302

Added lines #L298 - L302 were not covered by tests
# Set context to data value or excluding all negative and nan values
# Set context to data value if set or else exclude all negative and nan values
try:
input["context"] = data["context"]
except KeyError:
Expand Down

0 comments on commit ec05eb8

Please sign in to comment.