Skip to content

Commit

Permalink
Merge pull request #143 from sustrev/main
Browse files Browse the repository at this point in the history
Update E2E acquisition_date to be datetime like the other readers
  • Loading branch information
marksgraham authored Aug 6, 2024
2 parents 936f06d + 7609b7b commit d27f655
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oct_converter/readers/e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
import warnings
from collections import defaultdict
from datetime import date
from datetime import date, datetime
from itertools import chain
from pathlib import Path

Expand Down Expand Up @@ -160,9 +160,9 @@ def _make_lut():
- secToUnixEpechFromWindowsTicks
)
utc_time = time.gmtime(unixtime)
utc_time_string = time.strftime("%Y-%m-%d %H:%M:%S", utc_time)
dt_time = datetime.fromtimestamp(time.mktime(utc_time))
if self.acquisition_date is None:
self.acquisition_date = utc_time_string
self.acquisition_date = dt_time
if self.pixel_spacing is None:
# scaley found, x and z not yet found in file
self.pixel_spacing = [
Expand Down

0 comments on commit d27f655

Please sign in to comment.