Skip to content

Commit a5964a2

Browse files
committed
Fix: Set variances, not stds
1 parent 7e4c606 commit a5964a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/atoms/test_atoms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_atom_h() -> None:
1212
expected = scn.atoms.Atom(
1313
isotope='H',
1414
z=1,
15-
_atomic_weight=sc.scalar(1.008, variance=0.0002, unit='Da'),
15+
_atomic_weight=sc.scalar(1.008, variance=0.0002**2, unit='Da'),
1616
_atomic_mass=None,
1717
)
1818
assert atom == expected
@@ -23,8 +23,8 @@ def test_atom_1h() -> None:
2323
expected = scn.atoms.Atom(
2424
isotope='1H',
2525
z=1,
26-
_atomic_weight=sc.scalar(1.008, variance=0.0002, unit='Da'),
27-
_atomic_mass=sc.scalar(1.007825031898, variance=0.000000000014, unit='Da'),
26+
_atomic_weight=sc.scalar(1.008, variance=0.0002**2, unit='Da'),
27+
_atomic_mass=sc.scalar(1.007825031898, variance=0.000000000014**2, unit='Da'),
2828
)
2929
assert atom == expected
3030

0 commit comments

Comments
 (0)