summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-04-29 14:32:37 +0200
committerNao Pross <np@0hm.ch>2024-04-29 14:32:37 +0200
commit21590840570657ad046c4b73ea86baebe01ddb7b (patch)
tree7e8dc34535c380819d9767cc6650fe9cf440c60c
parentAdd sphinx documentation generator (diff)
downloadpolymatrix-21590840570657ad046c4b73ea86baebe01ddb7b.tar.gz
polymatrix-21590840570657ad046c4b73ea86baebe01ddb7b.zip
Add minor comments
-rw-r--r--polymatrix/expressionstate/mixins.py2
-rw-r--r--polymatrix/polymatrix/typing.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/polymatrix/expressionstate/mixins.py b/polymatrix/expressionstate/mixins.py
index 9c30475..0e61591 100644
--- a/polymatrix/expressionstate/mixins.py
+++ b/polymatrix/expressionstate/mixins.py
@@ -41,7 +41,7 @@ class ExpressionStateMixin(
index = IndexRange(start=self.n_variables, end=self.n_variables + size)
# FIXME: this is the only way the typechecker is happy, and it does
- # make sense indeed because ExpressionState is not a dataclass
+ # make sense because ExpressionState is not a dataclass.
# The typechecker should be somehow informed that this is an ABC that
# will eventually become a dataclass, but of course it can't know that
from .impl import ExpressionStateImpl
diff --git a/polymatrix/polymatrix/typing.py b/polymatrix/polymatrix/typing.py
index cebf636..2aa3f76 100644
--- a/polymatrix/polymatrix/typing.py
+++ b/polymatrix/polymatrix/typing.py
@@ -65,6 +65,8 @@ class MonomialIndex(tuple[VariableIndex]):
# they have the same degree the index counts
if self.degree == other.degree:
# Assumes that monomialindex is sorted!
+ # FIXME: if the first variable is also the same continue until one
+ # finishes or the values differ.
return self[0] < other[0]
return self.degree < other.degree