Skip to content

DHI/mikepluspy

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

191602d · Mar 6, 2025
Mar 6, 2025
Oct 31, 2024
Feb 18, 2025
Jan 31, 2024
Mar 6, 2025
Dec 12, 2024
Nov 4, 2024
Mar 6, 2025
Aug 30, 2023
Feb 18, 2025
Aug 30, 2023
Jan 31, 2024
Feb 18, 2025
Dec 11, 2023
Mar 6, 2025
Oct 17, 2023

Repository files navigation

logo

MIKE+Py: automate your workflows.

Python version Full test PyPI version OS Downloads

MIKE+Py is a python interface for MIKE+. Its main features include:

  • Modifying the MIKE+ database in a way that is consistent with the GUI.
  • Run different kinds of simulations (e.g. MIKE 1D, EPANET, SWMM)
  • Access certain GUI tools pythonically (e.g. import/export tool).

Caution

MIKE+Py is experimental and under development.

  • Be aware that there may be bugs or unexpected behavior - use with caution.
  • Always make copies of your MIKE+ databases and verify the outcome of scripts.
  • If you encounter any issues or have any feedback, please report them on GitHub Issues.

Requirements

  • MIKE+ 2024 (or greater) with valid license
  • Python x64 3.9 to 3.13
  • Windows

Installation

The version of MIKE+Py you install must match the version of MIKE+ installed on your desktop.

MIKE+ Version Install command
MIKE+ 2025 pip install mikeplus
MIKE+ 2024 Update 1 pip install mikeplus==2024.1.*
MIKE+ 2024 pip install mikeplus==2024.0.*

Examples

Please check out our [collection of jupyter notebooks] (https://github.com/DHI/mikepluspy/tree/main/notebooks) to get started with MIKE+Py.

Known issues

There's currently a known issue of using MIKE+Py together with MIKE IO and MIKE IO 1D. We are working on fixing this and appreciate your patience.

Workarounds:

  • Importing MIKE IO 1D after MIKE+Py will work.
  • Using Python's multiprocessing library to split imports (and workflows) into separate processes.
  • Split MIKE IO and MIKE+Py / MIKE IO 1D workflows into separate scripts.

Where can I get help?