From 1424842fc4af4f1779579c6e6e514d5942adf1cc Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Tue, 19 Nov 2019 19:39:19 -0800 Subject: [PATCH] Fix wrong dict being used for get_carg_spec --- src/hdmf/build/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdmf/build/map.py b/src/hdmf/build/map.py index 2fb4e7487..5558acfa1 100644 --- a/src/hdmf/build/map.py +++ b/src/hdmf/build/map.py @@ -667,7 +667,7 @@ def get_attr_spec(self, **kwargs): def get_carg_spec(self, **kwargs): """ Return the Spec for a given constructor argument """ carg_name = getargs('carg_name', kwargs) - return self.__attr2spec.get(carg_name) + return self.__carg2spec.get(carg_name) @docval({"name": "const_arg", "type": str, "doc": "the name of the constructor argument to map"}, {"name": "spec", "type": Spec, "doc": "the spec to map the attribute to"})