Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TSDF.extractStateInterval() to perform state comparison per metric column. #234

Merged
merged 19 commits into from
Aug 10, 2022

Conversation

R7L208
Copy link
Contributor

@R7L208 R7L208 commented Jul 23, 2022

fixes #232

Changes in this PR:

  • For method TSDF.extractStateInterval() in tsdf.py:

  • Update TSDF.extractStateInterval() to perform state comparison per metric column

  • Unified approach for metric comparison for state_defninition of type str and Callable

  • Fixed type signature of TSDF.extractStateInterval()

  • Cleaned up comments in TSDF.extractStateinterval() and selected less ambiguous var name for state_comp_fn

  • For class ExtractStateIntervalsTest:

    • new test cases for issue Bug in extractStateIntervals #232
    • new test cases for null safe equals comparison
    • added typing to objects for quick reference
    • updated variable names to reduce the number of warnings
    • split out test cases that uses the same comparison operator but expected a different result

@codecov
Copy link

codecov bot commented Jul 23, 2022

Codecov Report

Merging #234 (67bca9e) into master (1b5a3bb) will increase coverage by 0.76%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
+ Coverage   86.11%   86.88%   +0.76%     
==========================================
  Files          12       12              
  Lines        1210     1273      +63     
==========================================
+ Hits         1042     1106      +64     
+ Misses        168      167       -1     
Impacted Files Coverage Δ
tests/base.py 91.48% <0.00%> (ø)
tests/tsdf_tests.py 99.65% <0.00%> (+0.07%) ⬆️
tempo/tsdf.py 75.81% <0.00%> (+0.69%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@R7L208 R7L208 merged commit a51f1bf into master Aug 10, 2022
@R7L208 R7L208 deleted the bugfix_extractStateIntervals_issue232 branch August 10, 2022 21:10
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 in extractStateIntervals
3 participants