Skip to content

Commit

Permalink
functions returns a list of absolute timestamps instead of returning …
Browse files Browse the repository at this point in the history
…the relative timestamps with a seperate start_time.
  • Loading branch information
gokulbnr committed Nov 22, 2023
1 parent 0f605ec commit e97f6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tonic/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def read_davis_346(filename):
data_version, data_start, start_timestamp = read_aedat_header_from_file(filename)
all_events = get_aer_events_from_file(filename, data_version, data_start)
all_addr = all_events["address"]
t = all_events["timeStamp"]
t = start_timestamp * 1e3 + (all_events["timeStamp"] - all_events["timeStamp"][0])

# x, y, and p : bit-shift and bit-mask values taken from jAER (https://github.com/SensorsINI/jaer)
x = (346 - 1) - ((all_addr & 4190208) >> 12)
Expand All @@ -167,7 +167,7 @@ def read_davis_346(filename):

xytp = make_structured_array(x, y, t, p)
shape = (346, 260)
return shape, start_timestamp, xytp
return shape, xytp


def read_dvs_346mini(filename):
Expand Down

0 comments on commit e97f6ba

Please sign in to comment.