Skip to content

Commit cf634d6

Browse files
committed
Merge branch 'coning-sculling-v2' of https://github.com/4Subsea/smsfusion-python into coning-sculling-v2
2 parents eae10dd + b7086d5 commit cf634d6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

tests/test_coning_sculling.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import numpy as np
2+
import smsfusion as sf
3+
4+
5+
class Test_ConingScullingAlg:
6+
7+
def test__init__(self):
8+
alg = sf.ConingScullingAlg(256.0)
9+
10+
alg._fs == 256.0
11+
alg._dt == 1.0 / 256.0
12+
np.testing.assert_allclose(alg._theta, np.zeros(3))
13+
np.testing.assert_allclose(alg._dtheta_con, np.zeros(3))
14+
np.testing.assert_allclose(alg._dtheta_prev, np.zeros(3))
15+
np.testing.assert_allclose(alg._vel, np.zeros(3))
16+
np.testing.assert_allclose(alg._dvel_scul, np.zeros(3))
17+
np.testing.assert_allclose(alg._dv_prev, np.zeros(3))

0 commit comments

Comments
 (0)