Skip to content

Commit

Permalink
another bugfix for dates
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuzz31 committed Aug 15, 2023
1 parent 398c85b commit 147fc97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/RAiDER/gnss/processDelayFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ def update_time(row, localTime_hrs):

def pass_common_obs(reference, target, localtime=None):
'''Pass only observations in target spatiotemporally common to reference'''
if isinstance(target['Datetime'][0], 'str'):
if isinstance(target['Datetime'].iloc[0], str):
target['Datetime'] = target['Datetime'].apply(lambda x:
datetime.datetime.strptime(x, '%Y-%m-%d %H:%M:%S')
)
datetime.datetime.strptime(x, '%Y-%m-%d %H:%M:%S'))
if localtime:
return target[target['Datetime'].dt.date.isin(reference['Datetime']
.dt.date) &
Expand Down

0 comments on commit 147fc97

Please sign in to comment.