Skip to content

Empty parameters do not raise EmptyStateException in Python #260

@yrh012

Description

@yrh012

In the current setup, initializing a parameter without a value and then accessing its value does not raise an error. Instead, the parameter silently returns a default-constructed value, even though it is empty in python.

>>> import state_representation as sr
>>> sr.Parameter("remap_object_frame", sr.ParameterType.STRING)
Empty Parameter: 'remap_object_frame'
>>> param = sr.Parameter("remap_object_frame", sr.ParameterType.STRING)
>>> param.get_value()
>>> ''

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