Skip to content

Commit

Permalink
Fix error message in GraphPlot.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Mar 11, 2023
1 parent 677fa06 commit 1cf52c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions skfda/exploratory/visualization/representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ def __init__(
if self.gradient_criteria is not None:
if len(self.gradient_criteria) != fdata.n_samples:
raise ValueError(
"The length of the gradient color",
"list should be the same as the number",
"of samples in fdata",
f"The length of the gradient color list "
f"({len(self.gradient_criteria)}) "
f"should be the same as the number "
f"of samples in fdata "
f"({fdata.n_samples})",
)

if min_grad is None:
Expand Down

0 comments on commit 1cf52c4

Please sign in to comment.