Skip to content

Commit 931ed17

Browse files
committed
More linting
1 parent 34ed89c commit 931ed17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sage/geometry/fan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,7 @@ def is_polytopal(self):
24772477
:meth:`is_projective`.
24782478
"""
24792479
if not self.is_complete():
2480-
raise ValueError('To be polytopal, the fan should be complete.')
2480+
raise ValueError('to be polytopal, the fan should be complete')
24812481
from sage.geometry.triangulation.point_configuration import PointConfiguration
24822482
from sage.geometry.polyhedron.constructor import Polyhedron
24832483
pc = PointConfiguration(self.rays())

src/sage/geometry/polyhedron/base5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ def deformation_cone(self):
694694
sage: py = Polyhedron([(0, -1, -1), (0, -1, 1), (0, 1, -1), (0, 1, 1), (1, 0, 0)])
695695
sage: dc_py = py.deformation_cone(); dc_py
696696
A 4-dimensional polyhedron in QQ^5 defined as the convex hull of 1 vertex, 1 ray, 3 lines
697-
sage: [_.b() for _ in py.Hrepresentation()]
697+
sage: [ineq.b() for ineq in py.Hrepresentation()]
698698
[0, 1, 1, 1, 1]
699699
sage: r = dc_py.rays()[0]
700700
sage: l1,l2,l3 = dc_py.lines()
@@ -711,7 +711,7 @@ def deformation_cone(self):
711711
2.2 of [ACEP2020].
712712
"""
713713
from .constructor import Polyhedron
714-
m = matrix([_.A() for _ in self.Hrepresentation()])
714+
m = matrix([ineq.A() for ineq in self.Hrepresentation()])
715715
m = m.transpose()
716716
m_ker = m.right_kernel_matrix(basis='computed')
717717
gale = tuple(m_ker.columns())
@@ -722,7 +722,7 @@ def deformation_cone(self):
722722
dual_cone = Polyhedron(rays=[gale[i] for i in range(n) if i not in
723723
cone_indices])
724724
c = c.intersection(dual_cone) if c is not None else dual_cone
725-
preimages = [A_ker.solve_right(r.vector()) for r in c.rays()]
725+
preimages = [m_ker.solve_right(r.vector()) for r in c.rays()]
726726
return Polyhedron(lines=m.rows(), rays=preimages)
727727

728728
###########################################################

0 commit comments

Comments
 (0)