Skip to content

Commit

Permalink
Merge pull request #6301 from roed314/ecnf_error
Browse files Browse the repository at this point in the history
Fix error in ECNF when rank not known
  • Loading branch information
edgarcosta authored Dec 12, 2024
2 parents afad49d + 3e0f54d commit 43460d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmfdb/ecnf/WebEllipticCurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def make_E(self):
# Regulator only in conditional/unconditional cases, or when we know the rank:
BSDReg = None
if self.bsd_status in ["conditional", "unconditional"]:
if self.ar == 0:
if self.analytic_rank == 0:
BSDReg = 1
self.reg = self.NTreg = web_latex(BSDReg) # otherwise we only get 1.00000...
else:
Expand All @@ -575,7 +575,7 @@ def make_E(self):
BSDReg = R * K.degree()**self.rank
self.reg = web_latex(R)
self.NTreg = web_latex(BSDReg)
except AttributeError:
except Exception:
self.reg = "not available"
self.NTreg = "not available"
elif self.rk != "not available":
Expand Down

0 comments on commit 43460d3

Please sign in to comment.