Skip to content

Conversation

@bendichter
Copy link
Contributor

Motivation

fix #582

Add guard for empty timestamps array in
check_timestamp_of_the_first_sample_is_not_negative to prevent
IndexError. The check now returns None (skips) when both starting_time
is None and timestamps is empty or None.
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.02%. Comparing base (59ef74b) to head (c2d27de).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #652      +/-   ##
==========================================
+ Coverage   77.41%   81.02%   +3.60%     
==========================================
  Files          47       47              
  Lines        1656     1660       +4     
==========================================
+ Hits         1282     1345      +63     
+ Misses        374      315      -59     
Files with missing lines Coverage Δ
src/nwbinspector/checks/_time_series.py 91.83% <100.00%> (+0.34%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bendichter bendichter marked this pull request as ready for review December 24, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: errors with patchseq data

3 participants