From 91750adb2e7f50c39cff7b1a0bb0ee39628e1560 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Mon, 25 Oct 2021 09:35:47 +1000 Subject: [PATCH] Lazy load aedat Allows using loris without aedat if a non-aedat format is to be read/written --- source/ReadFile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ReadFile.py b/source/ReadFile.py index 5c17a22..bcf967e 100644 --- a/source/ReadFile.py +++ b/source/ReadFile.py @@ -1,4 +1,3 @@ -import aedat import loris_extension from . import CSV as csv import os @@ -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