From 9e1e8f022c16b84b8691d2757c0ac2265efb5975 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Fri, 12 Jan 2024 23:57:42 -0800 Subject: [PATCH] Update validator.py --- src/hdmf/validate/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdmf/validate/validator.py b/src/hdmf/validate/validator.py index a6198ef8e..2c34cda1b 100644 --- a/src/hdmf/validate/validator.py +++ b/src/hdmf/validate/validator.py @@ -160,7 +160,7 @@ def get_type(data, builder_dtype=None): if data.dtype.metadata is not None and data.dtype.metadata.get('vlen') is not None: # Try to determine dtype from the first array element if len(data) > 0: - return get_type(data[0]) + return get_type(data[0], builder_dtype) # Empty array else: # Empty string array