From 71d9bb31610d4e43af6714f59abaf98ee74c2bf0 Mon Sep 17 00:00:00 2001 From: John Cremona Date: Tue, 3 Dec 2024 03:48:56 -0500 Subject: [PATCH] ECNF: sort non-torsion gens by height for display --- lmfdb/ecnf/WebEllipticCurve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lmfdb/ecnf/WebEllipticCurve.py b/lmfdb/ecnf/WebEllipticCurve.py index 85e3228bd6..90cfd0378c 100644 --- a/lmfdb/ecnf/WebEllipticCurve.py +++ b/lmfdb/ecnf/WebEllipticCurve.py @@ -577,9 +577,10 @@ def make_E(self): try: self.gens = [web_point(parse_point(K, P)) for P in self.gens] self.gens_and_heights = list(zip(self.gens,self.heights)) + self.gens_and_heights.sort(key = lambda Ph: Ph[1]) except AttributeError: self.gens = [] - self.gens_and_orders = [] + self.gens_and_heights = [] # Global period try: