Skip to content

Commit

Permalink
Merge pull request #27 from dgegen/main
Browse files Browse the repository at this point in the history
Compatibility with pandas >= 2.0
  • Loading branch information
hposborn committed May 22, 2024
2 parents 93bc1e1 + 4813577 commit bbb8ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonoTools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ def update_lc_locs(epoch,most_recent_sect):
resp, content = h.request(fitsloc)
if int(resp['status']) < 400:
filename=content.split(b'\n')[1].decode().split(' ')[-2].split('-')
epoch=epoch.append(pd.Series({'date':int(filename[0][4:]),'runid':int(filename[3])},name=sect))
epoch.loc[sect, ['date', 'runid']] = [int(filename[0][4:]), int(filename[3])]
else:
print("Sector "+str(sect)+" not (yet) found on MAST | RESPONCE:"+resp['status'])
epoch.to_csv(MonoData_tablepath+"/tess_lc_locations.csv")
Expand Down

0 comments on commit bbb8ec3

Please sign in to comment.