From bcc8a458e66ca377abd16e48fce52127f036f758 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 10 Aug 2023 17:58:48 -0400 Subject: [PATCH] use public API in IntegerType converter for setting array storage --- asdf/core/_converters/integer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asdf/core/_converters/integer.py b/asdf/core/_converters/integer.py index 9ca5966c7..61ddf882d 100644 --- a/asdf/core/_converters/integer.py +++ b/asdf/core/_converters/integer.py @@ -24,7 +24,7 @@ def to_yaml_tree(self, obj, tag, ctx): array = np.array(words, dtype=np.uint32) tree = {} - ctx._blocks._set_array_storage(array, obj._storage) + ctx.set_array_storage(array, obj._storage) tree["words"] = array tree["sign"] = obj._sign tree["string"] = str(int(obj._value))