Skip to content

Fix sensor compatibility with OMEdit#282

Open
AxelMatstoms wants to merge 1 commit intoDLR-SR:mainfrom
AxelMatstoms:sensors-openmodelica
Open

Fix sensor compatibility with OMEdit#282
AxelMatstoms wants to merge 1 commit intoDLR-SR:mainfrom
AxelMatstoms:sensors-openmodelica

Conversation

@AxelMatstoms
Copy link
Collaborator

Media models with properties missing that could be selected in getQuantity caused errors in OMEdit. This commit resolves that issue by refactoring getQuantity to a block: GetQuantity. The block gets the selected quantity by parameter, and as such inactive branches don't get evaluated.

Update SingleSensorSelect, DifferenceSensorSelect and Undirected.SingleSensorSelect to use this block. Mark getQuantity as obsolete.

Resolves: #268

Media models with properties missing that could be selected in
getQuantity caused errors in OMEdit. This commit resolves that issue by
refactoring getQuantity to a block: GetQuantity. The block gets the
selected quantity by parameter, and as such inactive branches don't get
evaluated.

Update SingleSensorSelect, DifferenceSensorSelect and
Undirected.SingleSensorSelect to use this block. Mark getQuantity as
obsolete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SingleSensorSelect OpenModelica compatibility

1 participant