Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Apr 26, 2023
1 parent a4806cd commit 149dbcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discretize/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@ def _plot_it(axes, passed):
# passTest = belowTol or correctOrder
try:
if order1.size == 0:
# This should happen if the original function was a linear function
# This should happen if all of the 1st order taylor approximation errors
# were below epsilon, common if the original function was linear.
# Thus it has no higher order derivatives.
if not order0.size >= 0:
raise AssertionError(f"\nDerivative of linear operator is incorrect.")
pass
else:
test = np.mean(order1) > tolerance * expectedOrder
if not test:
Expand Down

0 comments on commit 149dbcb

Please sign in to comment.