Skip to content

Commit

Permalink
catch diagonal embedding for no errors (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman authored Aug 8, 2023
1 parent 5bba9c6 commit 78c5549
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stream_ml/pytorch/builtin/_isochrone/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ def ln_likelihood(
)

# Covariance: star (N, [I], F, F)
stds = data[self.phot_err_names].array
std_data = (
xp.diag_embed(stds)[:, None, :, :]
xp.diag_embed(data[self.phot_err_names].array)[:, None, :, :]
if self.phot_err_names is not None
else self.xp.zeros(1)
)
Expand Down

0 comments on commit 78c5549

Please sign in to comment.