-
Notifications
You must be signed in to change notification settings - Fork 12
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
Optimized Area thresholding #983
base: main
Are you sure you want to change the base?
Conversation
Thanks for the Pull Request @AuroVarat I'll take a look through this on Monday. In the mean time would you be able to address the failing tests please? If you're not familiar with tests the software development section of our docs has some advice. You'll want to Note also that |
Hi, I am not familiar with tests but I managed to go through the steps and do the "pytest --testmon". It fails 8 tests, but it fails 8 tests regardless of my changes ( I did the same test by running it on the current main branch). Maybe I am doing something wrong, I will look at it when I have more time. But if you see my changes, they are minimal and should not result in this failure. The code seems to be working fine when I am doing my analysis. Thanks. |
@ns-rse Hi Neil, Hope you are well. Were you able to merge it? If not, I can look into the test failures again. |
Hi @AuroVarat Apologies I've not had time to investigate why the tests are failing as I'm not full time on this project and have had various other tasks to work through. The logs show that there are two elements that are different in the revised code. How big an issue that might be isn't something I can really answer but we have tests in place to ensure that changes under the hood don't change the expected results. You could get more information on where these have changed running the specific test with... pytest -vv tests/test_grains.py::test_find_grains ...although there may be other places where tests fail as we use the If you are new to testing you may find the following tips on Contributing useful as they show how to get setup with a development environment and install the pre-commit hooks that we have in place which performs various linting. I've got some failing tests of my own to work through but feel free to message if you've any questions. |
This modification enhances the area thresholding function, significantly improving processing speed, especially for large images.