Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 19, 2024
1 parent 6e4f4d9 commit f02d3a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/test_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ def test_check_timestamp_of_the_first_sample_is_not_negative_with_timestamps_pas


def test_check_timestamp_of_the_first_sample_is_not_negative_with_starting_time_fail():

time_series = pynwb.TimeSeries(
name="test_time_series", unit="test_units", data=[1, 2, 3], starting_time=-1.0, rate=30.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."
)

assert check_timestamp_of_the_first_sample_is_not_negative(time_series) == InspectorMessage(
message=message,
importance=Importance.BEST_PRACTICE_SUGGESTION,
Expand Down

0 comments on commit f02d3a4

Please sign in to comment.