Skip to content

Commit

Permalink
Merge pull request #6101 from LMFDB/autopep8-patches
Browse files Browse the repository at this point in the history
Fixes by autopep8 action
  • Loading branch information
roed314 authored Jun 22, 2024
2 parents e1c5f0e + 5bc130f commit 6e604da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions lmfdb/groups/abstract/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3093,5 +3093,3 @@ def order_stats_list_to_string(o_list):

Fullname = {'magma': 'Magma', 'gap': 'Gap'}
Comment = {'magma': '//', 'gap': '#'}


5 changes: 1 addition & 4 deletions lmfdb/groups/abstract/web_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def cc_data_to_gp_label(order,counter):
return str(order) + '.' + cremona_letter_code(counter-1)



@cached_function(key=lambda label,name,pretty,ambient,aut,profiledata,cache: (label,name,pretty,ambient,aut,profiledata))
def abstract_group_display_knowl(label, name=None, pretty=True, ambient=None, aut=False, profiledata=None, cache={}):
# If you have the group in hand, set the name using gp.tex_name since that will avoid a database call
Expand Down Expand Up @@ -2627,7 +2626,6 @@ def image(self):
circles = ""
return f'<svg xmlns="http://www.w3.org/2000/svg" viewBox="-{R} -{R} {2*R} {2*R}" width="200" height="150">\n{circles}</svg>'


def create_snippet(self,item):
# mimics jinja macro place_code to be included in Constructions section
# this is specific for embedding in a table. eg. we need to replace "<" with "&lt;"
Expand All @@ -2647,7 +2645,6 @@ def create_snippet(self,item):
snippet_str = snippet_str + f'<tr><td colspan={col_span_val}><div class="{class_str}"> {prompt}:&nbsp;{line}<br /><div style="margin: 0; padding: 0; height: 0;">&nbsp;</div></div></td></tr>'
return snippet_str


@cached_method
def code_snippets(self):
if self.live():
Expand Down Expand Up @@ -2882,7 +2879,7 @@ def element_orders(self):
for T in cartesian_product_iterator(
[Zmod(m) for m in self.snf]))


class WebAbstractSubgroup(WebObj):
table = db.gps_subgroups

Expand Down

0 comments on commit 6e604da

Please sign in to comment.