From 74d98664f54bd1446eda6637a27383849d11c448 Mon Sep 17 00:00:00 2001 From: Segev BenZvi Date: Wed, 18 Oct 2023 08:25:31 -0400 Subject: [PATCH] Remove table row with zeros. --- python/snewpy/models/loaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/snewpy/models/loaders.py b/python/snewpy/models/loaders.py index ccff162a..b9670c7c 100644 --- a/python/snewpy/models/loaders.py +++ b/python/snewpy/models/loaders.py @@ -750,6 +750,9 @@ def __init__(self, filename, metadata={}): # Read ASCII data. simtab = Table.read(datafile, format='ascii') + # Remove the first table row, which appears to have zero input. + simtab = simtab[simtab['1:t_sim[s]'] > 0] + # Get grid of model times. simtab['TIME'] = simtab['2:t_pb[s]'] << u.s for j, (f, fkey) in enumerate(zip([Flavor.NU_E, Flavor.NU_E_BAR, Flavor.NU_X], 'ebx')):