Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maroba committed Dec 14, 2024
1 parent 848d26d commit 3725089
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions findiff/legacy/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,8 @@ def _eval_args(self, args, kwargs):
if "acc" in kwargs:
self.acc = kwargs["acc"]

if len(args) == 3:
axis, h, order = args
elif len(args) == 2:
axis, h = args
order = 1
else:
raise ValueError("Format: (axis, spacing, order=1)")
axis, h, order = args

pds = _Diff(axis, order)

spac[axis] = h
Expand Down

0 comments on commit 3725089

Please sign in to comment.