Skip to content

Commit

Permalink
Merge pull request #1355 from aringlis/lyra_l2_bug
Browse files Browse the repository at this point in the history
Bugfix for Lyra level 2 timestamps
  • Loading branch information
Cadair committed Mar 24, 2015
2 parents 290dddd + 2510494 commit 47580a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunpy/lightcurve/sources/lyra.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _parse_fits(filepath):
# First column are times. For level 2 data, the units are [s].
# For level 3 data, the units are [min]
if hdulist[1].header['TUNIT1'] == 's':
times = [start + datetime.timedelta(seconds=int(n))
times = [start + datetime.timedelta(seconds=n)
for n in fits_record.field(0)]
elif hdulist[1].header['TUNIT1'] == 'MIN':
times = [start + datetime.timedelta(minutes=int(n))
Expand Down

0 comments on commit 47580a1

Please sign in to comment.