Skip to content

Commit

Permalink
array instead of pandas frame?
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankruse committed Nov 9, 2024
1 parent db17c95 commit 6124a37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,9 @@ def load_data(updated_koi_params=True, only_candidates=True):
assert np.unique(dftoi['disposition']).size == 3

# make these useful degrees like all the other catalogs
dftoi['ra'] = Angle(dftoi['RA'], unit='hourangle').degree
dftoi['dec'] = Angle(dftoi['Dec'], unit='degree').degree
breakpoint()
dftoi['ra'] = Angle(dftoi['RA'].values, unit='hourangle').degree
dftoi['dec'] = Angle(dftoi['Dec'].values, unit='degree').degree

# assume symmetrical errors as they seem to do
dftoi['rade_err2'] = -1 * dftoi['rade_err1']
Expand Down

0 comments on commit 6124a37

Please sign in to comment.