Skip to content

Commit

Permalink
catch diagonal embedding for no errors
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Aug 8, 2023
1 parent 5bba9c6 commit a6e0c34
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 a6e0c34

Please sign in to comment.