-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gfanInterface: Another issue with gfanConvertToNewRing #3601
Comments
The problem is that when gfanConvertToNewRing creates the new ring, it calls "use" on this ring, which changes the ring of x1 globally. |
Calling i1 : code (symbol SPACE, Ring, Array)
o1 = -- code for method: Ring Array
src/macaulay2/M2/M2/Macaulay2/m2/polyrings.m2:138:33-138:57: --source code:
Ring Array := PolynomialRing => (R, M) -> use R monoid M |
The problem with this solution is that the symbols in
I guess one could rewrite gfanInterface.m2 to only access the ring variables as
While this returns false:
This should return true:
I don't know if something like this could be implemented? |
I think I found the solution! One needs to use the keyword
EDIT: Actually, not quite. I would also want that
returns false... but it doesn't. |
While fighting with #3600 I discovered a more exotic bug, unrelated to NCAlgebra, but probably coming from the same method. To produce a minimal example I copied some code from MultigradedImplicitization.m2 (@bkholler):
Here, the error message is
The problem seems to be the variable name "x1", which is also used inside gfanConvertToNewRing.
Interestingly, calling gfanHomogeneitySpace directly, e.g. does not produce any errors.It does, too.The text was updated successfully, but these errors were encountered: