Skip to content

BUG: properly use tolerances in is_close calls #156

Description

@tangkong

Current Behavior

Currently the application doesn't take the tolerances stored on a Parameter/Setpoint into account. This mainly reveals itself in LivePVTableModel, where we use np.is_close

Expected Behavior

We should properly use this information instead of dropping it on the floor

Context / environment

A bug I found at some point

Steps to Reproduce (for bugs)

  1. Try setting tolerances
  2. Look at discrepancies in LivePVTableModel

Suggested Solution

Since tolerances are only relevant for certain entries, perhaps it's worth adding this is as a method on the dataclasses themselves. Or put the logic into the client. I was about to put this parsing into the GUI but that's certainly the wrong place for it.

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