Skip to content

Commit 10b476b

Browse files
committed
Tutorial is finished
1 parent 209e522 commit 10b476b

File tree

2 files changed

+137
-213
lines changed

2 files changed

+137
-213
lines changed

tests/test_havok.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ def test_threshold_2():
368368
assert thres_1 == thres_2
369369

370370

371+
def test_threshold_3():
372+
"""
373+
Test compute_threshold function.
374+
Test that the threshold computation function properly throws an
375+
error if it is invoked with the default parameters prior to fitting.
376+
"""
377+
havok = HAVOK(svd_rank=16, delays=100)
378+
with raises(ValueError):
379+
_ = havok.compute_threshold()
380+
381+
371382
def test_dmd_1():
372383
"""
373384
Test that HAVOK works when used with an externally-defined DMD model.

tutorials/tutorial19/tutorial-19-havok.ipynb

Lines changed: 126 additions & 213 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)