Skip to content

Commit

Permalink
few lines of coverage (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBagnall authored Oct 19, 2024
1 parent 4741999 commit 7980298
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ def test_ordinal_tde_multivariate():
tde = IndividualOrdinalTDE(max_dims=1)
tde._fit(X, y)
assert len(tde._dims) == 1


def test_ordinal_tde_dict_states():
"""Test Ordinal TDE dict conversions."""
# train TDE
X, y = make_example_3d_numpy(n_cases=20, n_channels=10, n_timepoints=50)
tde = IndividualOrdinalTDE(n_jobs=2)
tde.fit(X, y)
tde._typed_dict = True # Example value for testing
state = tde.__getstate__()
assert isinstance(state, dict)
tde.__setstate__(state)

0 comments on commit 7980298

Please sign in to comment.