From 40f36dc4159c528c87198883d5c4428b785c8f94 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:46:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/nwbinspector/checks/_time_series.py | 2 +- tests/unit_tests/test_time_series.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nwbinspector/checks/_time_series.py b/src/nwbinspector/checks/_time_series.py index 81ba6c40..50a9cb0c 100644 --- a/src/nwbinspector/checks/_time_series.py +++ b/src/nwbinspector/checks/_time_series.py @@ -132,7 +132,7 @@ def check_timestamp_of_the_first_sample_is_not_negative(time_series: TimeSeries) if first_timestamp < 0: message = ( "Timestamps should not be negative. This usually indicates a temporal misalignment of the data. " - " It is recommended to align the `session_start_time` or `timestamps_reference_time` to be the earliest time value that occurs in the data, and shift all other signals accordingly." + " It is recommended to align the `session_start_time` or `timestamps_reference_time` to be the earliest time value that occurs in the data, and shift all other signals accordingly." ) return InspectorMessage(message=message) diff --git a/tests/unit_tests/test_time_series.py b/tests/unit_tests/test_time_series.py index 446680a5..498fe4ba 100644 --- a/tests/unit_tests/test_time_series.py +++ b/tests/unit_tests/test_time_series.py @@ -278,7 +278,7 @@ def test_check_timestamp_of_the_first_sample_is_not_negative_with_timestamps_fai time_series = pynwb.TimeSeries(name="test_time_series", unit="test_units", data=[1, 2, 3], timestamps=[-1, 0, 1]) message = ( "Timestamps should not be negative. This usually indicates a temporal misalignment of the data. " - " It is recommended to align the `session_start_time` or `timestamps_reference_time` to be the earliest time value that occurs in the data, and shift all other signals accordingly." + " It is recommended to align the `session_start_time` or `timestamps_reference_time` to be the earliest time value that occurs in the data, and shift all other signals accordingly." ) assert check_timestamp_of_the_first_sample_is_not_negative(time_series) == InspectorMessage( message=message,