Skip to content

Commit 4466666

Browse files
authored
Merge pull request #6664 from roed314/gps_subgroups_removal
Remove all references to gps_subgroups
2 parents b514dc0 + 0a82c18 commit 4466666

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lmfdb/groups/abstract/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ def cc_postprocess(res, info, query):
17301730
info["columns"].above_table = f"<p>{gp.repr_strg(other_page=True)}</p>"
17311731
info["group_factors"] = common_support if common_support else []
17321732
complex_char_known = {rec["label"]: rec["complex_characters_known"] for rec in db.gps_groups.search({'label':{"$in":list(gps)}}, ["label", "complex_characters_known"])}
1733-
centralizer_data = {(".".join(rec["label"].split(".")[:2]), ".".join(rec["label"].split(".")[2:])): rec["subgroup_tex"] for rec in db.gps_subgroups.search({'label':{"$in":list(centralizers)}},["label","subgroup_tex"])}
1733+
centralizer_data = {(".".join(rec["label"].split(".")[:2]), ".".join(rec["label"].split(".")[2:])): rec["subgroup_tex"] for rec in db.gps_subgroup_search.search({'label':{"$in":list(centralizers)}},["label","subgroup_tex"])}
17341734
highlight_col = {}
17351735
for rec in res:
17361736
label = rec.get("label")
@@ -2201,7 +2201,7 @@ def gp_data(label):
22012201
group_counter = int(group_counter)
22022202
else:
22032203
group_counter = class_to_int(group_counter) + 1 # we start labeling at 1
2204-
return datapage([label, [group_order, group_counter], label, label, label], ["gps_groups", "gps_conj_classes", "gps_qchar", "gps_char", "gps_subgroups"], bread=bread, title=title, label_cols=["label", ["group_order","group_counter"], "group", "group", "ambient"])
2204+
return datapage([label, [group_order, group_counter], label, label, label, label], ["gps_groups", "gps_conj_classes", "gps_qchar", "gps_char", "gps_subgroup_search", "gps_subgroup_data"], bread=bread, title=title, label_cols=["label", ["group_order","group_counter"], "group", "group", "ambient", "ambient"])
22052205

22062206
@abstract_page.route("/sdata/<label>")
22072207
def sgp_data(label):
@@ -2213,9 +2213,9 @@ def sgp_data(label):
22132213
if data is None:
22142214
return abort(404)
22152215
if data["quotient"] is None:
2216-
return datapage([label, data["subgroup"], data["ambient"]], ["gps_subgroups", "gps_groups", "gps_groups"], bread=bread, title=title)
2216+
return datapage([label, label, data["subgroup"], data["ambient"]], ["gps_subgroup_search", "gps_subgroup_data", "gps_groups", "gps_groups"], bread=bread, title=title)
22172217
else:
2218-
return datapage([label, data["subgroup"], data["ambient"], data["quotient"]], ["gps_subgroups", "gps_groups", "gps_groups", "gps_groups"], bread=bread, title=title)
2218+
return datapage([label, label, data["subgroup"], data["ambient"], data["quotient"]], ["gps_subgroup_search", "gps_subgroup_data", "gps_groups", "gps_groups", "gps_groups"], bread=bread, title=title)
22192219

22202220

22212221
# need to write characters in GAP or Magma formats for downloads

lmfdb/groups/abstract/test_abstract_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def test_underlying_data(self):
8181
"gps_conj_classes", "representative",
8282
"gps_qchar", "cdim",
8383
"gps_char", "indicator",
84-
"gps_subgroups", "mobius_sub"])
84+
"gps_subgroup_search", "mobius_sub"])
8585
self.check_args("/Groups/Abstract/sdata/16.8.2.b1.a1", [
86-
"gps_subgroups", "16.8.2.b1.a1",
86+
"gps_subgroup_search", "16.8.2.b1.a1",
8787
"gps_groups", "[28776, 16577, 5167]", # perm_gens
8888
"[[1, 1, 1]]"]) # faithful_reps

lmfdb/groups/abstract/web_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3546,7 +3546,7 @@ def display_quotient(self, subname=None, ab_invs=None):
35463546
@lazy_attribute
35473547
def _others(self):
35483548
"""
3549-
Get information from gps_subgroups for each of the other subgroups referred to
3549+
Get information from gps_subgroup_search for each of the other subgroups referred to
35503550
(centralizer, complements, contained_in, contains, core, normal_closure, normalizer)
35513551
"""
35523552
labels = []

scripts/groups/Make-images/dump-group-names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
for g in db.gps_groups.search({}, ['tex_name', 'label']):
1010
myhash[g['tex_name']].append(g['label'])
1111

12-
for g in db.gps_subgroups.search({}, ['quotient_tex', 'subgroup_tex', 'label']):
12+
for g in db.gps_subgroup_search.search({}, ['quotient_tex', 'subgroup_tex', 'label']):
1313
if g['quotient_tex']:
1414
myhash[g['quotient_tex']].append(g['label'])
1515
if g['subgroup_tex']:

0 commit comments

Comments
 (0)