Skip to content

Commit e4361bd

Browse files
authored
Merge pull request #6365 from edgarcosta/noqq
No QQ defined in magma
2 parents f628e88 + bc99ac7 commit e4361bd

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

lmfdb/api2/searchers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def register_search_function(name, human_name, description, auto_search=None, fu
7373
Only populate if you want to have full control over the search return
7474
7575
"""
76-
global searchers
7776
searchers[name] = searcher(human_name, description, auto_search=auto_search, full_info=full_info, full_inventory=full_inventory, full_search=full_search, inv=inv)
7877

7978

@@ -90,6 +89,5 @@ def register_singleton(url, table, key=None, simple_search=None, full_search=Non
9089
full_search -- A function that performs a search itself and returns the results
9190
"""
9291

93-
global singletons
9492
singletons[url] = {'table':table, 'key':key,
9593
'simple_search':simple_search, 'full_search':full_search}

lmfdb/higher_genus_w_automorphisms/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def expr_error(err):
292292
return err_msg
293293

294294
def expr_getc():
295-
global cur_expr, cur_index
295+
global cur_index
296296
while cur_index < len(cur_expr):
297297
result = cur_expr[cur_index]
298298
cur_index += 1

lmfdb/number_fields/code.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class_number_formula:
123123
[polcoeff (lfunrootres (lfuncreate (K))[1][1][2], -1), 2^K.r1 * (2*Pi)^K.r2 * K.reg * K.no / (K.tu[1] * sqrt (abs (K.disc)))]
124124
magma: |
125125
/* self-contained Magma code snippet to compute the analytic class number formula */
126-
Qx<x> := PolynomialRing(QQ); K<a> := NumberField(%s);
126+
Qx<x> := PolynomialRing(Rationals()); K<a> := NumberField(%s);
127127
OK := Integers(K); DK := Discriminant(OK);
128128
UK, fUK := UnitGroup(OK); clK, fclK := ClassGroup(OK);
129129
r1,r2 := Signature(K); RK := Regulator(K); RR := Parent(RK);

lmfdb/utils/trace_hash.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ def TraceHashClass(iso, E):
139139
For curves over number fields the iso label should include the
140140
field label.
141141
"""
142-
global TH_dict
143-
if iso in TH_dict:
144-
return TH_dict[iso]
145-
else:
146-
th = TH_dict[iso] = TraceHash(E)
147-
return th
142+
if iso not in TH_dict:
143+
TH_dict[iso] = TraceHash(E)
144+
return TH_dict[iso]

0 commit comments

Comments
 (0)