Skip to content

Commit

Permalink
Merge pull request #5629 from roed314/min_conrey_conj
Browse files Browse the repository at this point in the history
Min conrey conj
  • Loading branch information
edgarcosta authored Aug 9, 2023
2 parents 407c33a + ce8ef65 commit ceb7888
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lmfdb/characters/TinyConrey.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def galois_orbit(self, limit=31):
elif order < limit or order * order < limit * self.modulus:
logger.debug(f"compute all conjugate characters and return first {limit}")
return self.galois_orbit_all(limit)
elif limit == 1 or self.modulus < 30 * order:
elif limit == 1 or self.modulus <= 1000000:
logger.debug(f"compute {limit} first conjugate characters")
return self.galois_orbit_search(limit)
else:
Expand Down
3 changes: 3 additions & 0 deletions lmfdb/characters/test_characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def test_dirichletgalorbs(self):
W = self.tc.get('/Character/Dirichlet/9999999999/banana', follow_redirects=True)
assert 'Error: Galois orbits have only been computed for modulus up to 100,000' in W.get_data(as_text=True)

W = self.tc.get('/Character/Dirichlet/58589/50021', follow_redirects=True)
assert 'Number field defined by a degree 1428 polynomial' in W.get_data(as_text=True)

def test_dirichletchar11(self):
W = self.tc.get('/Character/Dirichlet/1/1')
assert '/NumberField/1.1.1.1' in W.get_data(as_text=True)
Expand Down

0 comments on commit ceb7888

Please sign in to comment.