Skip to content

Commit

Permalink
Improve error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkinsp committed Jul 8, 2019
1 parent 97e7455 commit dc16cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jax/numpy/lax_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,11 +2446,11 @@ def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None,
def quantile(a, q, axis=None, out=None, overwrite_input=False,
interpolation="linear", keepdims=False):
if overwrite_input or out is not None:
msg = ("jax.numpy.quantile does not support overwrite_input=True or"
msg = ("jax.numpy.quantile does not support overwrite_input=True or "
"out != None")
raise ValueError(msg)
if interpolation != "linear":
raise NotImplementedError("interpolation='linear' is implemented")
raise NotImplementedError("Only interpolation='linear' is implemented")

a = asarray(a)
q = asarray(q)
Expand Down

0 comments on commit dc16cb9

Please sign in to comment.