Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
muccc committed Dec 8, 2024
1 parent a011a61 commit 4587fda
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions iridiumtk/reassembler/ppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ def filter(self,line):
m=self.r2.match(q.data)
if not m: return
if m.group(2):
<<<<<<< HEAD
q.itime = dt.strptime(m.group(1), '%Y-%m-%dT%H:%M:%S.%f').replace(tzinfo=datetime.timezone.utc)
=======
#print("case 1", m.group(1))
q.itime = numpy.datetime64(m.group(1))
>>>>>>> incomplete port to 64bit datetime
#print(q.itime)
else:
q.itime = numpy.datetime64(m.group(1))

Expand All @@ -88,13 +86,14 @@ def filter(self,line):

if q.sat not in self.sv_pos: return None
# Only accept IBC with a very recent position update via IRA
dt = float(q.mstime) - self.sv_pos[q.sat]['mstime']
if dt > 90: return None
ira_dt = float(q.mstime) - self.sv_pos[q.sat]['mstime']
if ira_dt > 90: return None

return q

def process(self,q):
q.uxtime = dt.epoch(q.time)
#print(type(q.time), q.time)
q.uxtime = numpy.datetime64(int(q.time * 1e9), '[ns]')

# correct for slot:
# 1st vs. 4th slot is 3 * (downlink + guard)
Expand Down

0 comments on commit 4587fda

Please sign in to comment.