Skip to content

Commit

Permalink
message outside raise
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Aug 12, 2024
1 parent 10e5f59 commit e57c1b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyhdtoolkit/plotting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ def draw_confidence_ellipse(x: ArrayLike, y: ArrayLike, n_std: float = 3.0, face

if x.size != y.size:
logger.error(f"x and y must be the same size, but shapes {x.shape} and {y.shape} were given.")
raise ValueError(f"x and y must be the same size, but shapes {x.shape} and {y.shape} were given.")
msg = f"x and y must be the same size, but shapes {x.shape} and {y.shape} were given."
raise ValueError(msg)

logger.debug("Computing covariance matrix and pearson correlation coefficient")
covariance_matrix = np.cov(x, y)
Expand Down

0 comments on commit e57c1b1

Please sign in to comment.