Skip to content

Commit

Permalink
Also auto-download modpath_provisional for other platforms than win
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed May 29, 2024
1 parent 0796616 commit fbc2286
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion nlmod/modpath/modpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ def mpf(gwf, exe_name=None, modelname=None, model_ws=None):
"the save_flows option of the npf package should be True not None"
)

# get executable
# get executable. version_tag not supported yet
if exe_name is None:
exe_name = util.get_exe_path(exe_name="mp7_2_002_provisional")
else:
exe_name = util.get_exe_path(exe_name=exe_name)

# create mpf model
mpf = flopy.modpath.Modpath7(
Expand Down
5 changes: 2 additions & 3 deletions nlmod/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,8 @@ def download_mfbinaries(bindir=None, version_tag="latest", repo="executables"):

get_modflow(bindir=str(bindir), release_id=version_tag, repo=repo)

if sys.platform.startswith("win"):
# download the provisional version of modpath from Github
download_modpath_provisional_exe(bindir)
# download the provisional version of modpath from Github
download_modpath_provisional_exe(bindir=bindir, timeout=120)


def get_ds_empty(ds, keep_coords=None):
Expand Down

0 comments on commit fbc2286

Please sign in to comment.