-
Notifications
You must be signed in to change notification settings - Fork 37
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
spatial sampling: option to limit sampling along X-direction to a given range #1316
Conversation
Thank you @jtbuch! |
Ah I think I understand what's going on. Will post another commit on Monday after cleaning up the code a little. |
@jtbuch
For the test coverage, I suggest to add a new test routine in |
Sounds good, @slayoo! I will update this within the next week. |
Thanks! |
@jtbuch rebasing onto (or merging in) the current |
@slayoo Thank you for the suggestion! I am trying to set up multiple branches for different cases (keep an eye out for more issues 👀) and I will rebase before the next commit. |
Hi @slayoo I've added a new function locally that tests for both x- and z-directions based on the existing one in https://github.com/open-atmos/PySDM/blob/main/tests/unit_tests/initialisation/test_spatial_discretisation.py#L42-L57 Is there a file that calls |
Thanks @jtbuch !
It is enough to add the file to the repo, see https://docs.pytest.org/en/latest/explanation/goodpractices.html#conventions-for-python-test-discovery |
Ah that link was quite helpful, thanks! I have added the unit test to the repo now after verifying that it works locally. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1316 +/- ##
==========================================
+ Coverage 83.47% 83.49% +0.01%
==========================================
Files 362 362
Lines 8868 8878 +10
==========================================
+ Hits 7403 7413 +10
Misses 1465 1465 ☔ View full report in Codecov by Sentry. |
Thanks @jtbuch ! |
Generalized
spatial_sampling.py
to also include sampling along X-direction. Possible options include sampling for Z-direction individually or both directions simultaneously.