Files
slsDetectorPackage/python/tests/test_freq.py
T
maliakal_d 97ed713d4d
Run Simulator Tests on local RHEL9 / build (push) Failing after 59s
Run Simulator Tests on local RHEL8 / build (push) Failing after 2m28s
Build on RHEL9 docker image / build (push) Failing after 2m34s
Build on RHEL8 docker image / build (push) Failing after 3m56s
in python, but need to change the default to Hz again for clean code and intuition
2026-04-15 17:27:55 +02:00

14 lines
297 B
Python

from slsdet import Hz
'''
def test_Hz():
f = Hz(1)
assert f.value() == 1e6
f = Hz('1MHz')
assert f.value() == 1e6
f = Hz('5000kHz')
assert f.value() == 5e6
assert Hz(1) == 1
assert Hz(1e6) == 1e6
assert Hz(1, 'MHz') == 1e6
assert Hz(0.5, 'GHz') == 0.5e9
'''