Skip to content

fix(fixtures): fix package detection/selection#60

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-package-detection
Jan 18, 2023
Merged

fix(fixtures): fix package detection/selection#60
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:fix-package-detection

Conversation

@wpbonelli
Copy link
Copy Markdown
Member

@wpbonelli wpbonelli commented Jan 18, 2023

Previously the get_packages(namefile_path) function was not smart enough to find and search component model namefiles when given a simulation namefile — it only searched the specified namefile, so only GWF, IMS and TDIS would be returned, not the simulation's constituent models' packages. This PR fixes the function, looking in any GWF and GWT model namefiles referenced in a simulation namefile.

This affects the get_namefile_paths() and get_model_paths() functions, which use get_packages() internally. Also makes filtering external model tests by --package behave as expected, like the modflow6 autotests' --pak option previously behaved, including any component model packages used by a simulation.

@wpbonelli wpbonelli merged commit 8b9aeec into MODFLOW-ORG:develop Jan 18, 2023
@wpbonelli wpbonelli deleted the fix-package-detection branch January 18, 2023 02:39
@github-actions github-actions Bot mentioned this pull request Jan 18, 2023
wpbonelli added a commit that referenced this pull request Jan 18, 2023
* ci(release): update to development version 0.1.4
* docs(fixtures): add docs for model filtering by name/package (#52)
* docs(install): fix test model repo clone commands (#53)
* refactor(has_pkg): use import.metadata instead of pkg_resources (#54)
* Update docs (#55)
* docs: minor updates to DEVELOPER.md and README.md
* docs: add docs for download utilities
* docs: update docs for download utilities (#56)
* docs: expand docs for MFZipFile (#58)
* chore: remove empty files, fix long description in setup.cfg (#59)
* fix(fixtures): fix package detection/selection (#60)
* ci(release): set version to 0.1.4, update changelog

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: w-bonelli <wbonelli@ucar.edu>
Co-authored-by: Mike Taves <mwtoews@gmail.com>
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.

1 participant