From 2febcd2f9ec1222a988ae3e364fd30607b3dc889 Mon Sep 17 00:00:00 2001 From: Arnaud Blanchard <arnaud.blanchard@ensea.fr> Date: Thu, 30 Sep 2021 18:18:15 +0200 Subject: [PATCH] Fix error checking max dims size --- python/blc_array.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/blc_array.py b/python/blc_array.py index 20ba3b2..32ef841 100644 --- a/python/blc_array.py +++ b/python/blc_array.py @@ -36,6 +36,7 @@ class BlcArray: if (dims): #Creates dim_types = [c_size_t] * len(dims) + print(len(dims), *dims); lib.blc_array_new.argtypes = [c_uint32, c_uint32, c_int, *dim_types ] # Create a new array @@ -77,9 +78,10 @@ class BlcArray: if __name__ == "__main__": undef_array = BlcArray() + array = BlcArray('UIN8', 'TEXT', [16, 3]) - array.get_def() #Useless here, only for testing the function + #array.get_def() #Useless here, only for testing the function - print("type",array.type, "format", array.format, "length", len(array.data)) + #print("type",array.type, "format", array.format, "length", len(array.data)) # print(array.data[:array.total_length]) -- GitLab