Skip to content

Commit

Permalink
ci(release): omit backwards particle tracking examples (#1903)
Browse files Browse the repository at this point in the history
Temporary hack to exclude backwards tracking examples from the distribution until supported without a Python post-processing step, see MODFLOW-USGS/modflow6-examples#214.
  • Loading branch information
wpbonelli authored Jun 27, 2024
1 parent 63e79f6 commit c9a0807
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions distribution/build_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,14 @@ def setup_examples(
download_and_unzip(asset["browser_download_url"], examples_path, verbose=True)

# filter examples for models selected for release
# and omit any excluded models
excluded = ["ex-prt-mp7-p02", "ex-prt-mp7-p04"]
for p in examples_path.glob("*"):
if not any(m in p.stem for m in models):
print(f"Omitting example due to model selection: {p.stem}")
rmtree(p)
if any(e in p.stem for e in excluded):
print(f"Omitting deliberately excluded example: {p.stem}")
rmtree(p)

# list folders with mfsim.nam (recursively)
Expand Down

0 comments on commit c9a0807

Please sign in to comment.