in python, but need to change the default to Hz again for clean code and intuition
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

This commit is contained in:
2026-04-15 17:27:55 +02:00
parent f253296c23
commit 97ed713d4d
7 changed files with 68 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
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
'''