Skip to content

Commit

Permalink
more friendly error when x,y shape mis-match (#65)
Browse files Browse the repository at this point in the history
* more friendly error when x,y shape mis-match

* don't touch z
  • Loading branch information
Moelf authored Oct 12, 2020
1 parent c6c29a4 commit 9d67d1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RecipesPipeline/src/series.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ _nobigs(v) = v
x = _compute_x(x, y, z)
y = _compute_y(x, y, z)
z = _compute_z(x, y, z)
if !isnothing(x) && isnothing(z)
n = size(x,1)
!isnothing(y) && size(y,1) != n && error("Expects $n elements in each col of y, found $(size(y,1)).")
end
_nobigs(x), _nobigs(y), _nobigs(z)
end

Expand Down

0 comments on commit 9d67d1e

Please sign in to comment.