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

tests(processing): Update regression test targets to include dna width #1002

Merged
merged 15 commits into from
Nov 18, 2024

Conversation

ns-rse
Copy link
Collaborator

@ns-rse ns-rse commented Nov 18, 2024

Splits test_trace_image_disordered into two tests, the original compares dictionaries, the newer (suffixed with
_dataframes) compares the dataframes/csv files that are produced, of which there are two and one needed updating to
include the grain_width_mean column that #999 introduces.# TopoStats Pull Requests


Before submitting a Pull Request please check the following.

  • Existing tests pass.
  • Documentation has been updated and builds. Remember to update configuration.md, usage.md, and relevant processing sections under advanced.md. [Bug]: docs/data_dictionary.md does not reflect current output #1001
  • Pre-commit checks pass.
  • New functions/methods have typehints and docstrings.
  • ~~New functions/methods have tests which check the intended behaviour is correct. Tests to be written in due course, this just gets the current changes passing the existing tests.

Optional

topostats/default_config.yaml

If adding options to topostats/default_config.yaml please ensure.

  • There is a comment adjacent to the option explaining what it is and the valid values. N/A
  • A check is made in topostats/validation.py to ensure entries are valid. N/A
  • Add the option to the relevant sub-parser in topostats/entry_point.py.
    …h and improved docstring
    N/A

ns-rse and others added 15 commits November 13, 2024 10:14
Wheels are now available for all OS's and architectures (thanks @prubach 👍 )

Closes #994
Tests using [`pytest-regtest-2.3.2`](https://pypi.org/project/pytest-regtest/#history) are [failing on
OSX](https://github.com/AFM-SPM/TopoStats/actions/runs/11780199328/job/32810287345?pr=988) pegging version to
`pytest-regtest==2.3.1` to see if this resolves the issue.
As [suggested](#996 (comment)) by @SylviaWhittle we could all do
with an _aide memoire_ when making Pull Requests that we have covered everything we should.

This Pull Request therefore introduces just such a template to aid contributors in making sure we have covered
everything.

---

- [ ] Existing tests pass. **N/A** no changes to code base introduced.
- [ ] Documentation has been updated and builds. **N/A** no changes to code base introduced.
- [x] Pre-commit checks pass.
- [ ] New functions/methods have typehints and docstrings. **N/A** no changes to code base introduced.
- [ ] New functions/methods have tests which check the intended behaviour is correct. **N/A** no changes to code base
  introduced.
Splits `test_trace_image_disordered` into two tests, the original compares dictionaries, the newer (suffixed with
`_dataframes`) compares the dataframes/csv files that are produced, of which there are two and one needed updating to
include the `grain_width_mean` column that #999 introduces.
Two final tests needed updating to account for new `grain_width_mean` columns.

Also required rebasing onto `main` and `ns-rse/994-unpin-topoly` so the changes look larger than they might.
@ns-rse ns-rse merged commit c813dda into tcatley/dna-width Nov 18, 2024
10 checks passed
@ns-rse ns-rse deleted the ns-rse/999-split-and-update-tests branch November 18, 2024 21:12
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.

2 participants