Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 46e7f86

Browse files
committed
IO: update of subdyn mode test
1 parent 3f5e97d commit 46e7f86

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pyFAST/input_output/examples/SubDynModes.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@
3131
sds.toJSON('_OUT.json')
3232
sds.toGraph().toJSON('_OUT2.json')
3333

34-
3534
if __name__ == '__main__':
3635
plt.show()
3736
if __name__=='__test__':
38-
pass
37+
np.testing.assert_array_almost_equal(df['z_[m]'].values[::2], [-20. , -13.333, -6.667, 0. , 6.667])
38+
np.testing.assert_array_almost_equal(df['GuyanMode1x_[m]'].values[::2], [0. , 0.446041, 1.270304, 2.170204, 2.843171])
39+
try:
40+
os.remove('_OUT.json')
41+
os.remove('_OUT2.json')
42+
except:
43+
pass

0 commit comments

Comments
 (0)