From b2dd1a83880abd16b87906f4d0c7d70de1132e37 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Fri, 2 Aug 2024 14:54:18 +0200 Subject: [PATCH] having one nan on a column diff is normal --- tests/test_edf2bids.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_edf2bids.py b/tests/test_edf2bids.py index 6e9dba0..871b961 100644 --- a/tests/test_edf2bids.py +++ b/tests/test_edf2bids.py @@ -76,7 +76,8 @@ def _check_output_content(output_dir, input_file, eye=1): # space between timestamps should always be the same. if ending == "_physio": - assert len(df[0].diff().unique()) == 1 + # length is because first rwo will give a nan + assert len(df[0].diff().unique()) == 2 @pytest.mark.skipif(not _check_edf2asc_present(), reason="edf2asc missing")