Skip to content

Commit

Permalink
Fixes: Tests for implicit_linear channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Dobener committed Apr 11, 2022
1 parent 568502f commit e44ab7b
Show file tree
Hide file tree
Showing 3 changed files with 22,642 additions and 11,316 deletions.
10 changes: 10 additions & 0 deletions tdm_loader/tests/test_zip_tdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ def test_explicit_sequence_representation(get_file_dir, tdm_file):
# pylint: disable=redefined-outer-name
def test_linear_implicit_repr(get_file_dir, tdm_file):
"""Handles linear_implicit sequence representation correctly"""
assert_array_equal(
tdm_file.channel(0, 0), np.loadtxt(f"{get_file_dir}/channel00.txt")
)
assert tdm_file.channel_name(0, 0) == "Zeit_[200Hz]-rel"
assert tdm_file.channel(0, 0).shape == (11316,)


# pylint: disable=redefined-outer-name
def test_linear_implicit_repr_with_offset(get_file_dir, tdm_file):
"""Handles linear_implicit sequence representation with offset correctly"""
assert_array_equal(
tdm_file.channel(0, 1), np.loadtxt(f"{get_file_dir}/channel01.txt")
)
Expand Down
Loading

0 comments on commit e44ab7b

Please sign in to comment.