Skip to content

Commit

Permalink
use public API in IntegerType converter for setting array storage
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 8, 2023
1 parent 8142749 commit 214f8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asdf/core/_converters/integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 214f8be

Please sign in to comment.