Skip to content

Commit

Permalink
preliminary hack for GAP.jl
Browse files Browse the repository at this point in the history
add a `GAP.julia_to_gap(::JSON3.Array, ...)` method
until the fix from oscar-system/GAP.jl/pull/989 is available
  • Loading branch information
ThomasBreuer committed May 13, 2024
1 parent d4f9735 commit ca54f21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/GAP/oscar_to_gap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,15 @@ function GAP.julia_to_gap(

return gapset
end

## TODO: remove the following once GAP.jl has it
## (This will be the case when the change from
## https://github.com/oscar-system/GAP.jl/pull/989
## will be available.)
function GAP.julia_to_gap(
obj::JSON3.Array,
recursion_dict::IdDict{Any,Any} = IdDict();
recursive::Bool = false)

return GAP.julia_to_gap(copy(obj), recursion_dict; recursive)
end

0 comments on commit ca54f21

Please sign in to comment.