Skip to content

Automatic download functionality #532

@Arjanvw

Description

@Arjanvw

Describe the bug

The function nlmod.get_ds() tries to download the modflow executable through to_model_ds > set_ds_attrs > get_exe_path > get_bin_directory > download_mfbinaries. This results in an error URLError: <urlopen error [WinError 10054] De externe host heeft een verbinding verbroken>.

I want to construct a ds for modelling and don't need the mfbinaries, there seem te be no option to switch the download option off.

Expected behavior

An option to turn off the automatic download from nlmod.get_ds()

Code to reproduce

# make a dataset with nlmod
ds = nlmod.get_ds(
    model_name="model",
    model_ws="ws",
    extent=(0,100,0,100),
    layer=range(3),
    delr=10,
    delc=10,
    xorigin=0,
    yorigin=0,
)

Package and Python version

Python version : 3.12.12
NumPy version : 2.3.5
Xarray version : 2025.10.1
Matplotlib version : 3.10.7
Flopy version : 3.9.5

nlmod version : 0.10.0
hydropandas version: 0.18.0

Additional context

Add any other context about the problem here. If applicable, add screenshots to help explain your problem.

Issue checklist

  • Add labels
  • Add issue type
  • Assign yourself, a nlmod developer or no one
  • Check if there is not already an existing issue for this bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions