Closed fwkoch closed 5 years ago
When validating an Array, a new view is always created - see here: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L129
This results in some strange behavior, especially with using Arrays as DynamicProperties:
DynamicProperties
I propose adding a coerce key-word argument similar to container properties: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/base/containers.py#L170-L172 Then if coerce=False we would skip the new view creation step.
coerce
container
coerce=False
When validating an Array, a new view is always created - see here: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/math.py#L129
This results in some strange behavior, especially with using Arrays as
DynamicProperties
:I propose adding a
coerce
key-word argument similar tocontainer
properties: https://github.com/seequent/properties/blob/9fd6fb0a787e4e8692beb36e537ae8735bdec247/properties/base/containers.py#L170-L172 Then ifcoerce=False
we would skip the new view creation step.