• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

paulmthompson / WhiskerToolbox / 15545304457

09 Jun 2025 09:44PM UTC coverage: 55.215% (+4.0%) from 51.194%
15545304457

push

github

paulmthompson
Refactor to new MVP display options system

- Replace old display options with NewAnalog/DigitalEvent/DigitalIntervalSeriesDisplayOptions
- Migrate all MVP matrix functions to new_ prefixed versions
- Add compatibility members and function overloads for smooth transition
- Fix standard deviation recalculation and canvas resize errors
- Remove legacy MVP functions and old display option structures
- Apply consistent formatting throughout codebase

All tests pass with improved coordinate handling and panning behavior.

0 of 7 new or added lines in 1 file covered. (0.0%)

13 existing lines in 5 files now uncovered.

5225 of 9463 relevant lines covered (55.22%)

770.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/WhiskerToolbox/DataViewer/DisplayOptions/TimeSeriesDisplayOptions.cpp
1
#include "TimeSeriesDisplayOptions.hpp"
2
#include "AnalogTimeSeries/Analog_Time_Series.hpp"
3
#include "AnalogTimeSeries/MVP_AnalogTimeSeries.hpp"
4

5
#include "utils/color.hpp"
6

7
namespace TimeSeriesDefaultValues {
NEW
8
std::string getColorForIndex(size_t index) {
×
NEW
9
    if (index < DEFAULT_COLORS.size()) {
×
NEW
10
        return DEFAULT_COLORS[index];
×
11
    } else {
NEW
12
        return generateRandomColor();
×
13
    }
14
}
15
}// namespace TimeSeriesDefaultValues
16

17

NEW
18
float getCachedStdDev(AnalogTimeSeries const & series, NewAnalogTimeSeriesDisplayOptions & display_options) {
×
UNCOV
19
    if (!display_options.std_dev_cache_valid) {
×
20
        // Calculate and cache the standard deviation
21
        display_options.cached_std_dev = calculate_std_dev(series);
×
22
        display_options.std_dev_cache_valid = true;
×
23
    }
24
    return display_options.cached_std_dev;
×
25
}
26

NEW
27
void invalidateDisplayCache(NewAnalogTimeSeriesDisplayOptions & display_options) {
×
28
    display_options.std_dev_cache_valid = false;
×
NEW
29
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc