Skip to content

Commit

Permalink
Fix viz.draw (python-graphblas#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw authored Nov 8, 2022
1 parent ec61553 commit eaf0cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphblas/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def draw(m): # pragma: no cover
except ImportError as exc:
print(exc.msg)
return
if not isinstance(_output_type(m), (_Matrix, _TransposedMatrix)):
typ = _output_type(m)
if typ is not _Matrix and typ is not _TransposedMatrix:
print(f"Can only draw a Matrix, not {type(m)}")
return

Expand Down

0 comments on commit eaf0cbb

Please sign in to comment.