Skip to content

Commit

Permalink
Fix: confusion is/== (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed Oct 27, 2021
1 parent 6aab6f7 commit 6e305d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odl/operator/pspace_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _convert_to_spmatrix(operators):
'{}'.format(len(row), i, ncols))

for j, col in enumerate(row):
if col is None or col is 0:
if col is None or col == 0:
pass
elif isinstance(col, Operator):
irow.append(i)
Expand Down

0 comments on commit 6e305d1

Please sign in to comment.