Skip to content

Commit

Permalink
add (failing) test that fc_metadata updates as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Nov 23, 2023
1 parent 484acb9 commit 4eb3dc9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/version_1/test_fcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,23 @@ def test_ch_to_xarray(self):
with self.subTest("ex shape"):
self.assertTupleEqual(ch_da.shape, self.expected_shape)


def test_can_update_decimation_level_metadata(self):

window_type = "hamming"
# set the window typw
self.decimation_level.metadata.window.type = window_type
# assert that the updated value is true
assert self.decimation_level.metadata.window.type == window_type
self.decimation_level.write_metadata()
self.decimation_level.update_metadata()
self.fc_group.write_metadata()
self.fc_group.update_metadata()
tmp = self.fc_group.get_decimation_level("3")

assert tmp.decimation_level.metadata.window.type == window_type


@classmethod
def tearDownClass(self):
self.m.close_mth5()
Expand Down

0 comments on commit 4eb3dc9

Please sign in to comment.