units refactor

This commit is contained in:
Benoît Sierro
2023-09-25 16:14:38 +02:00
parent 2f9b5005a5
commit 4b5563bf54
13 changed files with 100 additions and 77 deletions

View File

@@ -33,7 +33,7 @@ def test_simple():
evaluator.set(wavelength=800e-9, t_num=1024, dt=5e-15)
assert evaluator.compute("t") == pytest.approx(math.tspace(t_num=1024, dt=5e-15))
assert evaluator.compute("w0") == pytest.approx(units.nm(800))
assert evaluator.compute("w0") == pytest.approx(units.nm_rads(800))
def test_default_args_simple():