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

Function _verify_range

pyxrf/gui_module/tests/test_useful_widgets.py:460–462  ·  view source on GitHub ↗
(rng)

Source from the content-addressed store, hash-verified

458 ), "Slider position (max. value) is incorrect"
459
460 def _verify_range(rng):
461 # Verify that selection is set correctly
462 npt.assert_array_almost_equal(rman.get_range(), rng, err_msg="Range is set incorrectly")
463
464 # Set the range and verify that the selection was scaled correctly
465 rman.set_range(full_range[0], full_range[1])

Callers 1

test_RangeManager_5Function · 0.85

Calls 1

get_rangeMethod · 0.80

Tested by

no test coverage detected