marksgraham / OCT-Converter

Tools for extracting the raw optical coherence tomography (OCT) and fundus data from proprietary file formats.
https://pypi.org/project/oct-converter/
MIT License
199 stars 70 forks source link

finish time stamp #134

Closed big97kai closed 8 months ago

big97kai commented 9 months ago

change the time stamp in e2e file.

the process to use that as following:

from oct_converter.readers import E2E

file_path = '{path to test file}'
e2e = E2E(file_path)
oct_list = e2e.read_oct_volume()
for oct_image_index in range(len(oct_list)):

    utc_time_string = oct_list[oct_image_index].acquisition_date
    print(utc_time_string)

It works for the machine where I intern... But I do think It need more test..

marksgraham commented 9 months ago

thanks @big97kai this looks to work on my end too.

just getting this error:

oct_converter/readers/e2e.py:6:1: F401 'datetime.datetime' imported but unused
oct_converter/readers/e2e.py:6:1: F401 'datetime.timedelta' imported but unused

if you can remove those imports then I'll merge