Skip to content

Commit

Permalink
Lazy load aedat
Browse files Browse the repository at this point in the history
Allows using loris without aedat if a non-aedat format is to be read/written
  • Loading branch information
Tobias-Fischer authored Oct 24, 2021
1 parent 9150597 commit 91750ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/ReadFile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import aedat
import loris_extension
from . import CSV as csv
import os
Expand All @@ -10,6 +9,8 @@ def read_file(file_name, file_name_dat_aps=None, verbose=False):
supported file formats are .aedat, .dat, .es and .csv
"""
if file_name.endswith('.aedat4'):
import aedat

decoder = aedat.Decoder(file_name)
target_id = None
width = None
Expand Down

0 comments on commit 91750ad

Please # to comment.