Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Jun 24, 2024
1 parent 3024960 commit 53a5468
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nlmod/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import sys
from pathlib import Path
from tkinter import W
import warnings
from typing import Dict, Optional

Expand Down Expand Up @@ -414,6 +415,11 @@ def download_mfbinaries(bindir=None, version_tag="latest", repo="executables"):
# 0748dcb9e4641b5ad9616af115dd3be906f98f50/flopy/utils/get_modflow.py#L623
flopy_metadata_fp = flopy_appdata_path / "get_modflow.json"
if not flopy_metadata_fp.exists():
logger.warning(
f"flopy metadata file not found at {flopy_metadata_fp}. "
"After downloading and installing the executables. "
"Most likely the script is run via pytest. Creating a new metadata file."
)
meta = get_release(tag=version_tag, repo=repo, quiet=True)
meta["bindir"] = str(bindir)

Expand Down

0 comments on commit 53a5468

Please sign in to comment.