-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1594 from MODFLOW-USGS/v6.4.3
Release 6.4.3
- Loading branch information
Showing
657 changed files
with
49,590 additions
and
33,708 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
numpy | ||
bmipy | ||
sphinx>=4 | ||
sphinx_markdown_tables | ||
nbsphinx | ||
nbsphinx_link | ||
ipython | ||
ipykernel | ||
rtds_action | ||
myst-parser | ||
sphinx_rtd_theme | ||
sphinx_rtd_theme>=1 | ||
pytest | ||
filelock | ||
modflow-devtools |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ sphinx_markdown_tables | |
ipython | ||
ipykernel | ||
rtds_action | ||
sphinx_rtd_theme | ||
sphinx>=4 | ||
sphinx_rtd_theme>=1 | ||
myst-parser |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Feel free to remove check-list items that aren't relevant to your change. | ||
|
||
- [ ] Closes #xxxx | ||
- [ ] Passed autotests | ||
- [ ] Formatted source files with `fprettify` | ||
- [ ] Updated definition (*.dfn) files with new or modified options | ||
- [ ] Described new options, features or behavior changes in release notes | ||
- [ ] Updated meson files, makefiles, and Visual Studio project files if new source files added |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import xml.etree.ElementTree as ET | ||
from pathlib import Path | ||
|
||
|
||
def get_source_files(src_folder): | ||
p = Path(".") | ||
src_files = [] | ||
print(f"Processing {src_folder} folder") | ||
ftypes = ("*.[fF]9[05]", "*.inc") | ||
src_files = [] | ||
for ft in ftypes: | ||
src_files.extend(p.glob(f"{src_folder}/**/{ft}")) | ||
return src_files | ||
|
||
|
||
def get_msvs_files(vfproj_file): | ||
print(f"Processing {vfproj_file}") | ||
tree = ET.parse(vfproj_file) | ||
root = tree.getroot() | ||
msvs_files = [] | ||
for f in root.iter("File"): | ||
s = f.attrib["RelativePath"] | ||
s = s.replace("\\", "/") | ||
s = s.replace("../", "") | ||
fpath = Path(s) | ||
msvs_files.append(fpath) | ||
return msvs_files | ||
|
||
|
||
def check_files(name, src_files, msvs_files): | ||
print( | ||
f"Verifying {name} files referenced in msvs project files are in src folder..." | ||
) | ||
s, m = set(src_files), set(msvs_files) | ||
diff = s ^ m | ||
from pprint import pformat | ||
|
||
assert not any(diff), ( | ||
f"{name} src files don't match msvs project file\n" | ||
f"=> symmetric difference:\n{pformat(diff)}\n" | ||
f"=> src - msvs:\n{pformat(s - m)}\n" | ||
f"=> msvs - src:\n{pformat(m - s)}\n" | ||
"Check to make sure msvs project file is consistent with source files." | ||
) | ||
|
||
|
||
def check_mf6(): | ||
# get list of source files and files referenced in msvs project files | ||
src_files = get_source_files("src") | ||
msvs_files = [] | ||
for vfproj in ["./msvs/mf6core.vfproj", "./msvs/mf6.vfproj"]: | ||
msvs_files.extend(get_msvs_files(vfproj)) | ||
check_files("MF6", src_files, msvs_files) | ||
|
||
|
||
def check_bmi(): | ||
# get list of source files and files referenced in msvs project files | ||
src_files = get_source_files("srcbmi") | ||
msvs_files = [] | ||
for vfproj in ["./msvs/mf6bmi.vfproj"]: | ||
msvs_files.extend(get_msvs_files(vfproj)) | ||
check_files("BMI", src_files, msvs_files) | ||
|
||
|
||
if __name__ == "__main__": | ||
check_mf6() | ||
check_bmi() | ||
print("msvs project (vfproj) files appear up-to-date...") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
""" | ||
Inserts Markdown compatibility tables | ||
between tags in target Markdown file. | ||
""" | ||
|
||
import re | ||
import sys | ||
from pathlib import Path | ||
|
||
name = sys.argv[1] # name of the table, e.g. "compile", "test" | ||
compat_path = Path(sys.argv[2]) # compatibility table path | ||
update_path = Path(sys.argv[3]) # path to file to update | ||
|
||
assert compat_path.is_file() | ||
assert update_path.is_file() | ||
|
||
with open(compat_path, "r") as compat: | ||
table = "".join(compat.readlines()) | ||
r = re.compile( | ||
r"<!\-\- " | ||
+ name | ||
+ r" compat starts \-\->.*<!\-\- " | ||
+ name | ||
+ r" compat ends \-\->", | ||
re.DOTALL, | ||
) | ||
ct = ( | ||
"<!-- " | ||
+ name | ||
+ " compat starts -->{}<!-- ".format("\n{}\n".format(table)) | ||
+ name | ||
+ " compat ends -->" | ||
) | ||
readme = update_path.open().read() | ||
update_path.open("w").write(r.sub(ct, readme)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
""" | ||
Converts compatibility reports from long to wide format | ||
and makes a markdown table from the wide format report. | ||
""" | ||
|
||
from pathlib import Path | ||
import pandas as pd | ||
import sys | ||
|
||
ip = Path(sys.argv[1]) # input file path | ||
op = Path(sys.argv[2]) # output file path | ||
assert ip.is_file() | ||
assert ip.suffix == ".csv" | ||
assert op.suffix == ".csv" | ||
|
||
# read long CSV | ||
df = pd.read_csv(ip) | ||
|
||
# pivot and sort | ||
df = pd.pivot( | ||
df, | ||
index="runner", | ||
columns=["compiler", "version"], | ||
values="support", | ||
).sort_values(by=["runner"]) | ||
|
||
# write wide CSV | ||
df.to_csv(op) | ||
|
||
# write wide markdown table | ||
with open(op.with_suffix(".md"), "w") as file: | ||
file.write( | ||
df.to_markdown() | ||
.replace("nan", "") | ||
.replace("(", "") | ||
.replace(")", "") | ||
.replace(",", "") | ||
.replace("'", "") | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
compiler,gcc,gcc,gcc,gcc,gcc,gcc,gcc,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel,intel,intel,intel,intel,intel,intel,intel,intel,intel | ||
version,10,11,12,13,7,8,9,2021.1,2021.10,2021.2,2021.3,2021.4,2021.5,2021.6,2021.7,2021.8,2021.9,2021.1,2021.2,2021.4,2022.0,2022.1,2022.2.1,2022.2,2023.0,2023.1,2023.2 | ||
runner,,,,,,,,,,,,,,,,,,,,,,,,,,, | ||
macos-11,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,,,,,,,,,, | ||
macos-12,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,✓,,,,,,,,,, | ||
ubuntu-20.04,✓,✓,,,✓,✓,✓,✓,✓,✓,,✓,✓,✓,✓,✓,✓,,,,,,✓,✓,,,✓ | ||
ubuntu-22.04,✓,✓,✓,✓,,,✓,✓,✓,✓,,✓,✓,✓,✓,✓,✓,,,,,,✓,✓,,,✓ | ||
windows-2019,✓,✓,✓,✓,,,✓,,✓,,,,,✓,✓,✓,✓,,,,,,,✓,,,✓ | ||
windows-2022,✓,✓,✓,✓,,,✓,,✓,,,,,✓,✓,✓,✓,,,,,,,✓,,,✓ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
compiler,gcc,gcc,gcc,gcc,gcc,gcc,gcc,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel-classic,intel,intel,intel,intel,intel,intel,intel,intel,intel,intel | ||
version,10,11,12,13,7,8,9,2021.1,2021.10,2021.2,2021.3,2021.4,2021.5,2021.6,2021.7,2021.8,2021.9,2021.1,2021.2,2021.4,2022.0,2022.1,2022.2.1,2022.2,2023.0,2023.1,2023.2 | ||
runner,,,,,,,,,,,,,,,,,,,,,,,,,,, | ||
macos-11,✓,✓,✓,✓,✓,✓,✓,✓,,✓,✓,✓,✓,✓,✓,,,,,,,,,,,, | ||
macos-12,✓,✓,✓,✓,,,,✓,,✓,✓,✓,✓,✓,✓,,,,,,,,,,,, | ||
ubuntu-20.04,✓,✓,,,✓,✓,✓,✓,,✓,,✓,✓,✓,✓,,,,,,,,,,,, | ||
ubuntu-22.04,✓,✓,✓,✓,,,✓,✓,,✓,,✓,✓,✓,✓,,,,,,,,,,,, | ||
windows-2019,,,,✓,,,,,,,,,,✓,✓,,,,,,,,,,,, | ||
windows-2022,✓,✓,✓,✓,,,✓,,,,,,,✓,✓,,,,,,,,,,,, |
Oops, something went wrong.