Skip to content

Commit

Permalink
Remove table row with zeros.
Browse files Browse the repository at this point in the history
  • Loading branch information
Segev BenZvi committed Oct 18, 2023
1 parent 9694948 commit 74d9866
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/snewpy/models/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand Down

0 comments on commit 74d9866

Please sign in to comment.