Skip to content

Conversation

@bendichter
Copy link
Contributor

Add check_electrical_series_unscaled_data to warn when ElectricalSeries has integer data type with default conversion (1.0) and offset (0.0), which suggests raw acquisition units are not properly scaled to Volts.

The check also considers channel_conversion for per-channel scaling to avoid false positives when proper conversion factors are specified.

Includes documentation for the best practice and changelog entry.

Closes #408
Closes #395

Add `check_electrical_series_unscaled_data` to warn when ElectricalSeries
has integer data type with default conversion (1.0) and offset (0.0),
which suggests raw acquisition units are not properly scaled to Volts.

The check also considers `channel_conversion` for per-channel scaling
to avoid false positives when proper conversion factors are specified.

Includes documentation for the best practice and changelog entry.

Closes #408
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.16%. Comparing base (59ef74b) to head (efc5dcd).

Files with missing lines Patch % Lines
src/nwbinspector/checks/_ecephys.py 95.45% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #650      +/-   ##
==========================================
+ Coverage   77.41%   81.16%   +3.75%     
==========================================
  Files          47       47              
  Lines        1656     1678      +22     
==========================================
+ Hits         1282     1362      +80     
+ Misses        374      316      -58     
Files with missing lines Coverage Δ
src/nwbinspector/checks/__init__.py 100.00% <ø> (ø)
src/nwbinspector/checks/_ecephys.py 96.11% <95.45%> (-0.18%) ⬇️

... 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.

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.

[Add Check]: ElectricalSeries of dtype int16 with conversion=1.0 and offset=0.0 is potentially wrong?

3 participants