aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdpoly/representations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdpoly/representations.py b/mdpoly/representations.py
index de03838..0cda642 100644
--- a/mdpoly/representations.py
+++ b/mdpoly/representations.py
@@ -40,9 +40,9 @@ class SparseRepr(Repr):
""" Return indices to non-zero terms in the polynomial at the given
matrix entry """
if entry in self.data.keys():
- yield from self.data[entry]
+ yield from self.data[entry].keys()
- return []
+ return tuple()
class HasSparseRepr(Protocol):