-
Notifications
You must be signed in to change notification settings - Fork 138
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
Introduce global gap variable Oscar_jl
#4577
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just one comment should be changed.
############################################################################ | ||
|
||
# Use GAP operations for the serialization of GAP objects. | ||
# (The methods will be Julia functions.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment lines do not fit.
If we want to make a comment then perhaps "for backwards compatibility"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes, I just copied the block from above but forgot to update it. Will do that tomorrow
@@ -123,14 +123,14 @@ InstallMethod(SetNiceMorphismForJuliaMatrixRepGroup, [IsGroup], function(G) | |||
Assert(0, ForAll(gens, IsJuliaMatrixRep)); | |||
|
|||
ele := gens[1]; | |||
hom := Julia.Oscar.iso_oscar_gap(Julia.base_ring(ele!.m)); | |||
hom := Oscar_jl.iso_oscar_gap(Julia.base_ring(ele!.m)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We get warnings about Oscar_jl
being unbound here. I think this might be caused by this code being loaded before Oscar.jl ?
The easiest way to fix this would be to move this file into OscarInterface
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and then edit experimental/MatrixGroups/src/MatrixGroups.jl
to remove its __init__
method)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this: 7f58958?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a general rule:
Any additional GAP code inside Oscar that shall become available in Oscar should be read via OscarInterface.
(If this is the case then perhaps it should be mentioned in the manual section "Interface functionalities beyond GAP.jl".)
Motivated by
from oscar-system/GAP.jl#1053.