Skip to content

Commit

Permalink
Merge pull request #10 from Tobias-Fischer/patch-1
Browse files Browse the repository at this point in the history
Lazy load aedat
  • Loading branch information
biphasic authored Oct 26, 2021
2 parents 9150597 + 91750ad commit f21c819
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 f21c819

Please # to comment.