Skip to main content

MIKE Core contains core libraries, like DFS (Data File System), EUM and more.

Project description

MIKE Core for Python

A project to facilitate use of the MIKE Core components with Python, targeting as well Windows as Linux.

The MIKE Core Python classes have an API which is almost identical to the MIKE Core .NET API, to the extend possible. Since Python does not support all the language constructions that .NET/C# does (as e.g. method overriding), the API's are not completely identical. Also, the number of classes in the Python version is also smaller, since Python classes can be formed while being used. However, the examples and documentation for the .NET/C# API is to a high degree applicable also for the use of MIKE Core Python. For details, visit:

MIKE for Developers/MIKE Core

This package is also intended for bringing MIKE IO on Linux.

Installation

Once published on PyPI...

pip install mikecore

Testing on Linux using Docker

  1. git clone https://github.com/DHI/mikecore-python
  2. cd mikecore-python
  3. docker build . -t mikecore:latest
  4. docker run mikecore:latest

Then you should get output like this:

============================= test session starts ==============================
platform linux -- Python 3.9.4, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /app
collected 68 items

tests/test_dfs0.py ........                                              [ 11%]
tests/test_dfs2.py ..........                                            [ 26%]
tests/test_dfs_basic.py .....                                            [ 33%]
tests/test_dfs_custom_block.py ..                                        [ 36%]
tests/test_dfs_static_item.py .                                          [ 38%]
tests/test_dfsbuilder.py ......                                          [ 47%]
tests/test_dfsu2D.py ..........                                          [ 61%]
tests/test_dfsu_file.py ..........                                       [ 76%]
tests/test_eum.py ..                                                     [ 79%]
tests/test_mesh.py ...                                                   [ 83%]
tests/test_miketools.py .                                                [ 85%]
tests/test_projections.py ..........                                     [100%]

============================= 68 passed in 31.46s ==============================

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mikecore-0.1.1b1.tar.gz (16.9 MB view details)

Uploaded Source

Built Distribution

mikecore-0.1.1b1-py3-none-any.whl (17.0 MB view details)

Uploaded Python 3

File details

Details for the file mikecore-0.1.1b1.tar.gz.

File metadata

  • Download URL: mikecore-0.1.1b1.tar.gz
  • Upload date:
  • Size: 16.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for mikecore-0.1.1b1.tar.gz
Algorithm Hash digest
SHA256 4e78f4db4f0575cbb493d95ba83498fa28da9bf6b35e4c0b93266d8f976ae823
MD5 3554f20f68b3f6a040c6f4e70bcee374
BLAKE2b-256 71cd92492fc7d497bcdd625021541b540c0a3e0f3e5fb3dea4bf06719d62a241

See more details on using hashes here.

File details

Details for the file mikecore-0.1.1b1-py3-none-any.whl.

File metadata

  • Download URL: mikecore-0.1.1b1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for mikecore-0.1.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c62786ef4674f60aa49f6fed6144361880ee2168c7614eeec59d41e5c49eee7
MD5 8a33d6a51f6339efe7a375ddf41242bd
BLAKE2b-256 15d0dcef8403dd58a30c82c4925955a661c91738d4b8ad792ee78424c4439c99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page