Skip to content

Commit

Permalink
add logger.error
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed Nov 4, 2024
1 parent 9ca1649 commit 3de73d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion piff/basis_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ def __init__(
if use_qr and solver not in ["scipy", "qr"]:
raise NotImplementedError(f"use_qr and {solver} are not compatible")
if use_qr:
logger.warning("use_qr=True should now be written solver='qr'")
logger.error("WARNING: use_qr=True is deprecated. "
"Use solver='qr' instead.")
self.solver = "qr"

if not CAN_USE_JAX and self.solver == "jax":
Expand Down

0 comments on commit 3de73d0

Please sign in to comment.