From b3c5f36e11e74e636613bb6793a6fedd51b6c403 Mon Sep 17 00:00:00 2001 From: bcolsen Date: Thu, 11 Apr 2019 11:59:18 -0600 Subject: [PATCH] flag fix --- galvani/BioLogic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index 3174299..a307f74 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -195,8 +195,9 @@ def VMPdata_dtype_from_colIDs(colIDs): flags2_dict = OrderedDict() for colID in colIDs: if colID in (1, 2, 3, 21, 31, 65): - type_list.append('u1') - field_list.append('flags') + if 'flags' not in field_list: + type_list.append('u1') + field_list.append('flags') if colID == 1: flags_dict['mode'] = (np.uint8(0x03), np.uint8) elif colID == 2: