Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 0c20221

Browse files
author
Frédéric Chapoton
committed
trac 20766 removed casting to ZZ (plus added a future import)
1 parent 702134c commit 0c20221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/geometry/lattice_polytope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
# the License, or (at your option) any later version.
102102
# http://www.gnu.org/licenses/
103103
#*****************************************************************************
104-
from __future__ import print_function
104+
from __future__ import print_function, absolute_import
105105

106106
from sage.combinat.posets.posets import FinitePoset
107107
from sage.geometry.hasse_diagram import Hasse_diagram_from_incidences
@@ -6302,7 +6302,7 @@ def positive_integer_relations(points):
63026302
c = [0] * (n + i) + [1] + [0] * (n_nonpivots - i - 1)
63036303
MIP.set_objective(sum(ci * w[i] for i, ci in enumerate(c)))
63046304
MIP.solve()
6305-
x = [ZZ(k) for k in MIP.get_values(w).values()[:n]]
6305+
x = MIP.get_values(w).values()[:n]
63066306
v = relations.linear_combination_of_rows(x)
63076307
new_relations.append(v)
63086308

0 commit comments

Comments
 (0)