-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature: MODFLOW 6 support #12
Merged
Merged
Conversation
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
- Move MfSfrNetwork to _legacy.py -- this may be removed later - Move _core.py to _base.py, for base abstract class, shared logic - Use SwnModflow for classic MODFLOW - Use SwnMf6 for MODFLOW 6
Closed
- Split 'other_from_swn_flopy' into two parts, with the second content going to 'set_sfr_data' - Start of 'packagedata' property, which depends on data in reaches
some pseudo code on how this should work is as follows:
|
… reaches df Still not sure what to do with 'set_sfr_data'... Work on test_modflow6.py test suite...
- rename class properties - fix __repr__ - rename 'from_rno' to plural 'from_rnos' - fix last from_rnos
- Rename to_* methods to internal _* methods - Add flopy_* method properties - Fix repr - When setting model property, check tdis - Fix geotransform_from_flopy - Check over tests, discard some, now only 1 xfail (for diversions)
- Re-integrate diversions - Diversions use 'divid', and not 'segnum' with iupseg!=0 - Update __repr__
Move min_slope out of set_sfr_data methods
SwnMf6 - segment_data not used, so drop set_segment_data
Move plot() method to base class too. Start test_modflow_base.py for generic tests
* Merge plot() to base, show diversions and inflow points too * Use base class (via super()) for __iter__ and __setstate__ * Create _get_segments_inflow() to gather external flow * Change set_reach_slope() method "linestringz_ab" to "zcoord_ab" * Add misc function transform_data_to_series_or_frame() to help read and check segment or diversion data. * Add _set_stationary_tsvar_data() to help set_* methods that set a data frame of stationary data and a dict of time-varying data SwnModflow changes (too many, but a list is attempted here): * Add property segment_data_ts to data model as a dict of tsvar frames * Remove set_sfr_data(), as it was too high-level * Also remove set_segment_data(), as it's also too high level * Add new_segment_data() to generate a basic segment_data frame * Add set_segment_data_from_scalar() * Add set_segment_data_from_segments(), data indexed by segments * Add set_segment_data_from_diversions(), data indexed by diversions * Add set_segment_data_inflow(), data indexed by segments in/out of model * Add flopy_segment_data property method to create dict of rec.array * Add default_segment_data() to set high-level data and defaults * Add set_sfr_obj() to create and set a flopy sfr object to the model Tests: * Use get_basic_swn() and get_basic_modflow() helper functions
was part of the segments frame. Start clean-up of MF6 logic for default_packagedata
Start of SwnMf6 logic to handle time-varying data as "tsvar"
Prefer tmp_path fixture over tmpdir_factory Clean-up unused parts
Fix set_sfr_obj(), remove perioddata keyword but allow packagedata and connectiondata. Update tests to use default_packagedata() and set_sfr_obj()
A version of these may come back later
Show warning that MfSfrNetwork is legacy code when initialized
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The plan is to implement this feature independent of older MF support (for now) to get this feature going.