Skip to content

Usage of python list as odml value circumvents dtype checks #227

@mpsonntag

Description

@mpsonntag

Since we removed the odml.Value class and simply replaced it with a python list, this list provides of course methods like append which in turn ignores all the nice dtype checks we would like to have in place to keep odML values consistent.

As an example this currently works w/o any error:

p = odml.Property(name="example", dtype=odml.DType.int, value=[2, 4, 16, 23, 42])
p.value.append("lame ending")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions