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

Add tests for column names in feature detection and tracking #227

Merged
merged 3 commits into from
Jan 24, 2023

Conversation

w-k-jones
Copy link
Member

New tests have been added to check that the column names in feature detection mirror the names of the coords in the input data. Existing tests for tracking have been added to ensure that the column names of the tracking dataframe matches those of the features dataframe aside from the "cell" column, and that column names are not duplicated.

Tracking has also been modified to overwrite the features dataframe with a copy to prevent modifications to the input dataframe, and the temporary column names for the predictive tracking workaround have been further obfuscated to avoid any likely conflict with other column names.

  • Have you followed our guidelines in CONTRIBUTING.md?
  • Have you self-reviewed your code and corrected any misspellings?
  • Have you written documentation that is easy to understand?
  • Have you written descriptive commit messages?
  • Have you added NumPy docstrings for newly added functions?
  • Have you formatted your code using black?
  • If you have introduced a new functionality, have you added adequate unit tests?
  • Have all tests passed in your local clone?
  • If you have introduced a new functionality, have you added an example notebook?
  • Have you kept your pull request small and limited so that it is easy to review?
  • Have the newest changes from this branch been merged?

@w-k-jones w-k-jones added the bug Code that is failing or producing the wrong result label Jan 20, 2023
@w-k-jones w-k-jones added this to the Version 1.4.1 milestone Jan 20, 2023
@w-k-jones w-k-jones self-assigned this Jan 20, 2023
@w-k-jones w-k-jones mentioned this pull request Jan 20, 2023
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Base: 39.30% // Head: 39.25% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (98cd513) compared to base (6c3fc8a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           hotfix     #227      +/-   ##
==========================================
- Coverage   39.30%   39.25%   -0.06%     
==========================================
  Files          11       11              
  Lines        2249     2247       -2     
==========================================
- Hits          884      882       -2     
  Misses       1365     1365              
Flag Coverage Δ
unittests 39.25% <100.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tobac/tracking.py 65.45% <100.00%> (-0.62%) ⬇️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@freemansw1 freemansw1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this, @w-k-jones!

Copy link
Member

@JuliaKukulies JuliaKukulies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, good to go @w-k-jones !

@w-k-jones w-k-jones merged commit a4382e7 into tobac-project:hotfix Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Code that is failing or producing the wrong result
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants