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

Commit

Permalink
pass F4 and MGB to M2 as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
saliola committed Oct 6, 2019
1 parent 59b3215 commit 1ad24c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/multi_polynomial_ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3050,9 +3050,9 @@ def _groebner_basis_macaulay2(self, strategy=None):
if strategy == "gb" or strategy is None:
m2G = I.gb().generators()
elif strategy == 'f4':
m2G = I.groebnerBasis('Strategy=>F4')
m2G = I.groebnerBasis('Strategy=>"F4"')
elif strategy == 'mgb':
m2G = I.groebnerBasis('Strategy=>MGB')
m2G = I.groebnerBasis('Strategy=>"MGB"')
else:
raise ValueError("unsupported Macaulay2 strategy")
G = str(m2G.external_string()).replace('\n','')
Expand Down

0 comments on commit 1ad24c3

Please sign in to comment.