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

Commit

Permalink
git grep -l 'libs[.]all import' | xargs sed -i.bak '/[Gg]ap/s/from sa…
Browse files Browse the repository at this point in the history
…ge.libs.all import/from sage.libs.gap.libgap import/'
  • Loading branch information
Matthias Koeppe committed Dec 9, 2021
1 parent 1bab7ab commit 46ad7a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sage/combinat/root_system/weyl_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, domain, prefix):
# FinitelyGeneratedMatrixGroup_gap takes plain matrices as input
gens_matrix = [self.morphism_matrix(self.domain().simple_reflection(i))
for i in self.index_set()]
from sage.libs.all import libgap
from sage.libs.gap.libgap import libgap
libgap_group = libgap.Group(gens_matrix)
degree = ZZ(self.domain().dimension())
ring = self.domain().base_ring()
Expand Down Expand Up @@ -1027,7 +1027,7 @@ def __init__(self, cartan_type, prefix):
self._index_set_inverse = {ii: i for i,ii in enumerate(cartan_type.index_set())}
self._reflection_representation = None
self._prefix = prefix
#from sage.libs.all import libgap
#from sage.libs.gap.libgap import libgap
Q = cartan_type.root_system().root_lattice()
Phi = list(Q.positive_roots()) + [-x for x in Q.positive_roots()]
p = [[Phi.index(x.weyl_action([i]))+1 for x in Phi]
Expand Down
2 changes: 1 addition & 1 deletion src/sage/groups/matrix_gps/pickling_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __setstate__(self, state):
matrix_gens = state['_gensG']
ring = state['_MatrixGroup_gap__R']
degree = state['_MatrixGroup_gap__n']
from sage.libs.all import libgap
from sage.libs.gap.libgap import libgap
libgap_group = libgap.Group(libgap(matrix_gens))
self.__init__(degree, ring, libgap_group)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/libs/gap/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Short tests for GAP
"""

from sage.libs.all import libgap
from sage.libs.gap.libgap import libgap
from sage.misc.temporary_file import tmp_filename


Expand Down
2 changes: 1 addition & 1 deletion src/sage/libs/gap/test_long.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
These stress test the garbage collection inside GAP
"""

from sage.libs.all import libgap
from sage.libs.gap.libgap import libgap


def test_loop_1():
Expand Down

0 comments on commit 46ad7a0

Please sign in to comment.