Skip to content

Commit

Permalink
Merge pull request #1377 from Rishabhmishra328/key_error
Browse files Browse the repository at this point in the history
Sorted the KeyError in issue #1371
  • Loading branch information
Cadair committed Apr 8, 2015
2 parents be50389 + b47f510 commit aea6be2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sunpy/lightcurve/sources/goes.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,5 @@ def _parse_fits(filepath):
newxrsb = xrsb.byteswap().newbyteorder()

data = DataFrame({'xrsa': newxrsa, 'xrsb': newxrsb}, index=times)

data.sort(inplace=True)
return header, data
4 changes: 3 additions & 1 deletion sunpy/lightcurve/sources/lyra.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ def _parse_fits(filepath):
table[col.name] = fits_record.field(i + 1)

# Return the header and the data
return OrderedDict(hdulist[0].header), pandas.DataFrame(table, index=times)
data = pandas.DataFrame(table, index=times)
data.sort(inplace=True)
return OrderedDict(hdulist[0].header), data

0 comments on commit aea6be2

Please sign in to comment.