From babe6ae5c91a5ddbb5c4534a1afa9097fb77c3de Mon Sep 17 00:00:00 2001 From: andreab1997 Date: Wed, 18 Oct 2023 15:04:25 +0200 Subject: [PATCH] Use bin_left to get the q2grid --- src/pineko/fonll.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pineko/fonll.py b/src/pineko/fonll.py index f3100ffb..bcd3ec28 100644 --- a/src/pineko/fonll.py +++ b/src/pineko/fonll.py @@ -82,13 +82,7 @@ def theorycard_no_fns_pto(self): @property def Q2grid(self): """The Q2grid of the (DIS) FK tables.""" - obs = json.loads(self.fks[list(self.fks)[0]].key_values()["runcard"])[ - "observables" - ] - kins = list(obs.values())[ - 0 - ] # there is only a single observable because it's a dis fktable - return np.array([i["Q2"] for i in kins]) + return self.fks[list(self.fks)[0]].bin_left(0) # Notice we rely on the order defined by the FONLLInfo class