Skip to content

Commit 2b0a6f6

Browse files
committed
Adapt to new Singular sat API
1 parent 543f8d6 commit 2b0a6f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage/rings/polynomial/multi_polynomial_ideal.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,11 @@ def saturation(self, other):
24462446
(Ideal (y, x^5) of Multivariate Polynomial Ring in x, y, z over Algebraic Field, 4)
24472447
"""
24482448
from sage.libs.singular.function_factory import ff
2449-
sat = ff.elim__lib.sat
2449+
# function renamed in singular > 4.2.3p4
2450+
try:
2451+
sat = ff.elim__lib.sat_with_exp
2452+
except NameError:
2453+
sat = ff.elim__lib.sat
24502454
R = self.ring()
24512455
ideal, expo = sat(self, other)
24522456
return (R.ideal(ideal), ZZ(expo))

0 commit comments

Comments
 (0)