tools.ImportTool

The Import Tool from MIKE+.

Usage

Source

tools.ImportTool(
    configFile,
    database,
)

Parameters

configFile
database

Examples

>>> from mikeplus import Database
>>> from mikeplus.tools import ImportTool
>>> db = Database("path/to/model.sqlite")
>>> import_tool = ImportTool("path/to/config.xml", db)
>>> import_tool.run()
>>> db.close()

Methods

Name Description
__init__() Initialize the ImportTool with the given configuration file and Database.
run() Run the import tool.

__init__()

Initialize the ImportTool with the given configuration file and Database.

Usage

Source

__init__(configFile, database)
Parameters
configFile: str

A xml configuration file. This file can be generated by MIKE+ application.

database: Database
The MIKE+ model database to import into.

run()

Run the import tool.

Usage

Source

run()