MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / _verify_selection

Function _verify_selection

pyxrf/gui_module/tests/test_useful_widgets.py:386–391  ·  view source on GitHub ↗
(sel)

Source from the content-addressed store, hash-verified

384 rman.show()
385
386 def _verify_selection(sel):
387 # Verify that selection is set correctly
388 npt.assert_array_almost_equal(rman.get_selection(), sel, err_msg="Selection is set incorrectly")
389 # Verify that selection is displayed correctly
390 assert rman.le_min_value.text() == f"{sel[0]:.10g}", "Lower boundary is displayed incorrectly"
391 assert rman.le_max_value.text() == f"{sel[1]:.10g}", "Upper boundary is displayed incorrectly"
392
393 rman.set_value_type(value_type)
394 rman.set_range(full_range[0], full_range[1])

Callers 2

test_RangeManager_4Function · 0.85
test_RangeManager_5Function · 0.85

Calls 1

get_selectionMethod · 0.80

Tested by

no test coverage detected