Skip to content

Commit

Permalink
Merge pull request #6182 from fchapoton/activation_E111
Browse files Browse the repository at this point in the history
activate the check for E111
  • Loading branch information
roed314 authored Sep 3, 2024
2 parents d5dd294 + 60582aa commit 83e553f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
6 changes: 4 additions & 2 deletions lmfdb/belyi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ def query_convert_abc_list(query):
query.pop("abc_list")
return query


def common_parse(info, query):
parse_bracketed_posints(info, query, "abc_list", "a, b, c", maxlength=3)
query_convert_abc_list(query)
Expand All @@ -700,8 +701,9 @@ def common_parse(info, query):
parse_nf_string(info, query, 'field', name="base number field", qfield='base_field_label')
parse_bool(info, query, "is_primitive", name="is_primitive")
for fld in ["geomtype", "group"]:
if info.get(fld):
query[fld] = info[fld]
if info.get(fld):
query[fld] = info[fld]


def primitivization_search(info, query, search_type):
if search_type == "galmap":
Expand Down
8 changes: 6 additions & 2 deletions lmfdb/characters/web_character.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@
from lmfdb.groups.abstract.main import abstract_group_display_knowl
logger = make_logger("DC")


def parity_string(n):
return ("even" if n else "odd") if isinstance(n, bool) else ("odd" if n == -1 else "even")


def bool_string(b):
return "yes" if b else "no"


def compute_values(chi, groupelts):
"Helper function to compute values of several elements on the fly"
return [[k, int(chi.conreyangle(k) * chi.order)] for k in groupelts]
"Helper function to compute values of several elements on the fly"
return [[k, int(chi.conreyangle(k) * chi.order)] for k in groupelts]


def valuefield_from_order(order):
order2 = order if order % 4 != 2 else order / 2
Expand Down
9 changes: 5 additions & 4 deletions lmfdb/hypergm/test_hgm.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from lmfdb.tests import LmfdbTest


class HGMTest(LmfdbTest):
# TODO: create stats page
#def test_stats(self):
#self.check_args("Hypergeometric/Q/stats", "Monodromy")
# def test_stats(self):
# self.check_args("Hypergeometric/Q/stats", "Monodromy")

### test pages
# test pages

### family pages
# family pages

def test_random_family(self):
self.check_args("/Motive/Hypergeometric/Q/random_family", ["Hypergeometric motive family", "Defining parameters"])
Expand Down
4 changes: 2 additions & 2 deletions lmfdb/modular_curves/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ def modcurve_Gassmann_download(request, lang):
print("info query = ", info["query"])
info["results"] = []
for i in range(ncurves):
query_dict.update({'coarse_num' : i+1})
info["results"].append(db.gps_gl2zhat_fine.lucky(query_dict))
query_dict.update({'coarse_num' : i+1})
info["results"].append(db.gps_gl2zhat_fine.lucky(query_dict))
info["search_table"] = db.gps_gl2zhat_fine
info["columns"] = modcurve_columns
info["showcol"] = ".".join(["CPlabel", "RSZBlabel", "RZBlabel", "SZlabel", "Slabel", "rank", "cusps", "conductor", "simple", "squarefree", "decomposition", "models", "j-points", "local obstruction", "generators"])
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ commands =
# E111 indentation is not a multiple of four
# E702 multiple statements on one line (semicolon)
# W391 blank line at end of file
pycodestyle --select=E722,E711,E702 lmfdb/
pycodestyle --select=E111,E722,E711,E702 lmfdb/

0 comments on commit 83e553f

Please sign in to comment.