-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
BugIssues that report incorrect or undesirable behaviour(s)Issues that report incorrect or undesirable behaviour(s)Priority: 1EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.
Description
Summary
ArrayDimension data can be set to be multidimensional, which should not be possible.
Steps to reproduce
arr = ArrayDimension([1.])
arr.data = np.array([[1., 2.], [3., 4.]], dtype=str)`
What is the current bug behavior?
No error.
What is the expected correct behavior?
ValueError
Possible fixes
This is just because setting multidimensional data and an unsupported dtype is only prohibited in __init__. These two sections of validation should be extracted out into a @property.
Metadata
Metadata
Assignees
Labels
BugIssues that report incorrect or undesirable behaviour(s)Issues that report incorrect or undesirable behaviour(s)Priority: 1EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.