-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mp7particledata): match mp7 order in to_coords()/to_prp() (#…
…2172) * return the same particle order from to_coords() and to_prp() as generated by MP7 — preserves particle indexing for MF6 PRT, making it easier to compare results * refactoring/cleanup, factor out helper methods get_cell_release_points(), get_face_release_points() * defer materialization — return iterators not lists so the consumer can control memory use, previously done for to_coords() and to_prp() but not get_release_points(), might be relevant for very large release configurations * test-drive a pytest plugin for previously hardcoded snapshot tests, introduce some fixtures in autotest/conftest.py for nicer array snapshots than the default format, maybe these could live in devtools if they see wider use?
- Loading branch information
Showing
9 changed files
with
430 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+464 Bytes
autotest/__snapshots__/test_particledata/test_lrcparticledata_to_prp_1_per_face.npy
Binary file not shown.
Binary file added
BIN
+3.08 KB
...__snapshots__/test_particledata/test_lrcparticledata_to_prp_divisions_defaults[False].npy
Binary file not shown.
Binary file added
BIN
+3.08 KB
.../__snapshots__/test_particledata/test_lrcparticledata_to_prp_divisions_defaults[True].npy
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.