Skip to content

Commit cc5b457

Browse files
committed
Dictionary input in tests
1 parent d727e2a commit cc5b457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_basic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def test_data():
5050
x = rms * x / np.std(x)
5151

5252
# Spectral data
53-
sd = FLife.SpectralData(input=(x,t[1]), nperseg=int(0.1/t[1]))
53+
input_dict = {'time_history': x, 'dt': t[1]}
54+
sd = FLife.SpectralData(input=input_dict, nperseg=int(0.1/t[1]))
5455

5556
# Rainflow reference fatigue life
5657
rf = FLife.Rainflow(sd)

0 commit comments

Comments
 (0)