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

Commit

Permalink
Doctest _gap_init_ is now optional gap_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhorst committed Jan 18, 2018
1 parent c846a0e commit ec2c011
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sage/groups/abelian_gps/abelian_group.py
Expand Up @@ -884,16 +884,13 @@ def _gap_init_(self):
sage: gap(G)
Group( [ f1, f2, f3 ] )
Only works for finite groups::
Requires the optional `gap_packages` for infinite groups::
sage: G = AbelianGroup(3,[0,3,4],names="abc"); G
Multiplicative Abelian group isomorphic to Z x C3 x C4
sage: G._gap_init_()
sage: G._gap_init_() # optional gap_packages
'AbelianPcpGroup([0, 3, 4])'
"""
# TODO: Use the package polycyclic has AbelianPcpGroup, which can handle
# the infinite case but it is a GAP package not GPL'd.
# Use this when the group is infinite...
if self.is_finite():
return 'AbelianGroup(%s)'%list(self.gens_orders())
from sage.misc.package import is_package_installed, PackageNotFoundError
Expand Down

0 comments on commit ec2c011

Please sign in to comment.