Changeset 3c331d1 in ammosreader
- Timestamp:
- 05/18/23 12:52:59 (2 years ago)
- Branches:
- AmmosSource, guix
- Children:
- 14d7f7d
- Parents:
- d34008d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/PDW.py
rd34008d r3c331d1 29 29 parts = struct.unpack('<Q4s4s4s4s4s4s', byte_string) 30 30 nanoseconds = (parts[0]) 31 if (np.datetime64('now', 'ns').astype(int) >= nanoseconds): 31 print("Nanoseconds", nanoseconds) 32 unix_time = np.datetime64('now', 'ns').astype(int) 33 if unix_time > nanoseconds): 32 34 raise OverflowError("Timestamp invalid") 33 35 time_of_arrival = np.datetime64(nanoseconds, 'ns')
Note:
See TracChangeset
for help on using the changeset viewer.