Skip to content

Commit 3300f52

Browse files
authored
Merge pull request LMFDB#6519 from jenpaulhus/triv_download
Fix trivial download
2 parents ca3578b + 13c4b8f commit 3300f52

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

lmfdb/groups/abstract/main.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,6 +2255,18 @@ def download_char_table(G,dltype,ul_label): # G is web abstract group
22552255
return ""
22562256

22572257

2258+
def download_trivial_construction(dltype): #trival gp construction is different
2259+
if dltype == "gap":
2260+
s = "GPC := TrivialGroup(); \n"
2261+
s += "GPerm := SymmetricGroup(1); \n"
2262+
elif dltype == "magma":
2263+
s = "GPC := SmallGroup(1,1); \n"
2264+
s += "GPerm := Sym(1); \n"
2265+
else:
2266+
s = ""
2267+
return s
2268+
2269+
22582270
@abstract_page.route("/<label>/download/<download_type>")
22592271
def download_group(**args):
22602272
dltype = args["download_type"]
@@ -2285,7 +2297,10 @@ def download_group(**args):
22852297
s = com1 + " Group " + label + " downloaded from the LMFDB on %s." % (mydate) + " " + com2
22862298
s += "\n \n"
22872299

2288-
if wag.complex_characters_known is False:
2300+
2301+
if label == "1.1":
2302+
cc_known = False
2303+
elif wag.complex_characters_known is False or wag.complex_characters_known is None:
22892304
cc_known = False
22902305
elif wag.element_repr_type == "Lie": # issue with representatives of quotients vs permutations
22912306
if wag.representations["Lie"][0]["family"][0] == "P":
@@ -2299,7 +2314,10 @@ def download_group(**args):
22992314
s += "\n \n"
23002315

23012316
s += com1 + " Constructions " + com2 + "\n"
2302-
s += download_construction_string(wag,dltype)
2317+
if label == "1.1": #special case for trivial subgroup
2318+
s += download_trivial_construction(dltype)
2319+
else:
2320+
s += download_construction_string(wag,dltype)
23032321
s += "\n \n"
23042322

23052323
s += com1 + " Booleans " + com2 + "\n"

0 commit comments

Comments
 (0)