Skip to content

ArrayDimension data can be set incorrectly #74

@TOFarmer

Description

@TOFarmer

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

No one assigned

    Labels

    BugIssues that report incorrect or undesirable behaviour(s)Priority: 1EVENTUAL: A low priority issue that is unlikely to be addressed until the priority increases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions