Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bwohlberg committed Feb 7, 2024
1 parent 2b563f1 commit d7a4791
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scico/linop/_linop.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ def wrapper(
# same type of linop, but with operands reversed from case above
bfunc = getattr(type(b), func.__name__)._unwrapped
return bfunc(a, b)
if isinstance(
b, LinearOperator
): # LinearOperator + LinearOperator -> LinearOperator
if isinstance(b, LinearOperator):
# LinearOperator + LinearOperator -> LinearOperator
return LinearOperator(
input_shape=a.input_shape,
output_shape=a.output_shape,
Expand Down

0 comments on commit d7a4791

Please sign in to comment.