You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't really explain that all attribute values are converted to numpy arrays.
This is done by NcAttribute.__init__, and implicitly by NcData/NcVariable.set_attrval.
Meanwhile to fetch, "as_python_value()" is a key feature.
However, direct assignment to NcAttribute.value would bypass it.
It's not clear whether we would want to go further in forcing all attribute values to be arrays.
We could make .value a property, or possibly make NcAttribute itself immutable ??
The text was updated successfully, but these errors were encountered:
pp-mo
changed the title
Document handling of Attributes
Document array nature of Attribute values
Mar 18, 2024
We don't really explain that all attribute values are converted to numpy arrays.
This is done by
NcAttribute.__init__
, and implicitly byNcData/NcVariable.set_attrval
.Meanwhile to fetch, "as_python_value()" is a key feature.
However, direct assignment to
NcAttribute.value
would bypass it.It's not clear whether we would want to go further in forcing all attribute values to be arrays.
We could make .value a property, or possibly make NcAttribute itself immutable ??
The text was updated successfully, but these errors were encountered: