Skip to content

bug: native Exceptions in get_variable_ids are not surfaced immediately #5

@jmp75

Description

@jmp75

This was noticed in a notebook. Not a serious bug, but puzzling to observe first.

Repro is e.g. if calling sim.get_variable_ids(element_id="node.123.ec") where node 123 has no error connection set, a c++ exception is raised, yet the python function returns an empty list.

This may be a consequence of the handling of floats, ints, booleans, and the normal error trapping and immediate reporting is broken. Basically, the next jupyter notebook cell executed will report the error that occurred in the prior cell.

Need to refresh my memory as to how to fix exactly, but should be easy.

Metadata

Metadata

Assignees

No one assigned

    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