Skip to content
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

Merge develop into master for the mf6.6.0 release #239

Merged
merged 54 commits into from
Dec 17, 2024
Merged

Conversation

langevin-usgs
Copy link
Contributor

No description provided.

wpbonelli and others added 30 commits June 5, 2024 07:57
These files are generated when we build the RTD site or PDF document so I think we can remove them from versioning. This also removes the need to keep them in sync with the example collection.
example(gwe-vsc): the first vsc example
example(gwe-ates): aquifer thermal energy storage example (redo)
…ock (#212)

updating calls to `flopy.mf6.ModflowGweest()` to reflect the recent changes to the input structure of the Energy Storage and Transfer (EST) package.  See #1882 on the main MODFLOW 6 repo (MODFLOW-USGS/modflow6#1882)
This restores the backwards particle tracking examples removed in 2070cf1 and e2602d7, anticipating that the head/budget reversal issue can be resolved by one of

* excluding these from the examples script distributed with the next release, or
* supporting backward tracking natively via flow model interface (only postprocessing mode)
* developing a standalone utility to reverse head/budget files without Python/FloPy

Also suppress some output ("Working on radius level N") in the radial GWE example.
Drop an updated action (ame-yu/action-delete-latest-release) and use gh CLI instead. This should fix the release tagging, which is broken — the 'current' tag points to a commit from long ago. At some point, maybe worth considering tagging examples releases to match MF6 release versions? Users have reported some difficulty discovering which mf6/examples/flopy versions are compatible.

Also:
* Add workflow dispatch triggers for manual testing and to allow rebuilding the RTD site manually.
* Make release asset names consistent (mf6examples.zip/.pdf), which required a corresponding update in mf6: MODFLOW-USGS/modflow6#1920.
* Factor out some environment variables in ex-workflow.yml and other miscellaneous cleanup.
Like modflowpy/flopy#2257, allow selecting refs for this repository and the modflow6 repo
)

Can confirm the behavior that @rbwinst-usgs was reporting; namely that the percent discrepancy was reduced from 0.13 to 0.0 by specifying the closure criterion.
add Toth problem as a new GWF example
emorway-usgs and others added 24 commits August 14, 2024 17:18
fix(ex-gwe-*): update est package input after updating variable names in GRIDDATA block
…al solution (and therefore removed the analytical solution entirely)
example(gwe-barends): "thermal bleeding" (conduction) example based on Barends solution
fix(ist-sorption): need to specify linear now for ist sorption
Applies ruff check section-underline-matches-section-length (D409), which impacts two Python source files.

Also re-configures ruff's configuration to remove "include" to apply the checks globally. It also removes the extend-include since the default value for include already has "*.ipynb". A default line-length = 88 is also re-iterated at the top of the configuration.
)

- Add a configuration and "ignore" list of words for [codespell](https://github.com/codespell-project/codespell)
- Run codespell interactively to correct typos throughout the codebase
- Add a CI check to prevent new typos from entering repo
Refactor some multi-line statements. This was mostly automated by temporarily toggling skip-magic-trailing-comma = true in ruff.toml, then selecting some commits that condense multi-line statements to single, while rejecting other statements that are better represented over multiple lines. There was no exact rule-of-thumb for the process, except to try and maintain the same style in surrounding code blocks.

Note that while there are fewer lines, there are no functional changes.
This refactor applies pyupgrade (UP) and Ruff-specific rules (RUF) to the Python code base. A few manual edits are done on top of automated fixes to apply flake8-implicit-str-concat (ISC).
This PR should fix a numpy selection issue that was causing this model to fail with some operating systems
fix(synthetic-valley): numpy selection behavior is inconsistent
Some of the example scripts have begun to break with matplotlib 3.10. Most of the failures are due to the removal of the collections attribute from ContourSet and related API changes. We will need to rewrite some things to work around this. For reference see the corresponding change from a while ago in flopy.

Two failures however seem to be internal to matplotlib, with pillow being used incorrectly:

Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/matplotlib/animation.py", line 224, in saving
      yield self
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/matplotlib/animation.py", line 1126, in save
      writer.grab_frame(**savefig_kwargs)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/matplotlib/animation.py", line 499, in grab_frame
      self._frame.append(im)
  AttributeError: 'PillowWriter' object has no attribute '_frame'. Did you mean: '_frames'?

While we address the former and wait for a resolution for the latter, we can just pin mpl.
@langevin-usgs langevin-usgs merged commit cee0c92 into master Dec 17, 2024
20 checks passed
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.

5 participants