Skip to main content

Python package with utility functions for working with MicroHH LES/DNS.

Project description

MicroHHpy


PyPi Badge

Description

Python package with utility functions for working with MicroHH LES/DNS.

The main purpose of microhhpy is to simplify complex workflows and case setups, such as setting up nested simulations with open boundary conditions. Basic scripts for handling MicroHH input and output are still available in microhh/python/microhh_tools.py and other scripts like cross_to_nc.py.

Most of the functionality of microhhpy is demonstrated in the notebooks located in microhhpy/examples.

[!IMPORTANT]
Like microhh itself, this Python package has only been tested in Unix environments.

Usage

The recommended way to install microhhpy is via PyPI:

pip install microhhpy

For development, you can clone the repository and make microhhpy available in one of three ways:

  1. Editable install with pip. Clone the source code from Github, and install it (preferably in a development virtual environment) using:

    pip install -e /path/to/microhhpy
    
  2. Without pip, you can expose microhhpy by adding it to your PYTHONPATH:

    export PYTHONPATH="${PYTHONPATH}:/path/to/microhhpy"
    
  3. Or append the path directly in your Python script before importing:

    import sys
    sys.path.append('/path/to/microhhpy')
    

Once set up, you can import microhhpy modules, for example:

from microhhpy.spatial import Domain
from microhhpy.spatial import Projection

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

microhhpy-0.1.5.tar.gz (668.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microhhpy-0.1.5-py3-none-any.whl (679.0 kB view details)

Uploaded Python 3

File details

Details for the file microhhpy-0.1.5.tar.gz.

File metadata

  • Download URL: microhhpy-0.1.5.tar.gz
  • Upload date:
  • Size: 668.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for microhhpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7fb981a2b736f094f92072f1742f0bfdf7a585b4be01ce01380dbba4a9eac341
MD5 85036b89ef7ccfe6d00eab327a9acbb8
BLAKE2b-256 b93e2ca4a6d4ad52b80e5cc9075d6a1783a30fb69c088aad675ca5c40d17ea36

See more details on using hashes here.

File details

Details for the file microhhpy-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: microhhpy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 679.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for microhhpy-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5b680ffdd5dccba28bcf588b8e2aed5942a7bcb3162855cdf13ef697703ce0d2
MD5 c0b01772c4b501181c7cc8a7d6ad5c91
BLAKE2b-256 e2812678f0e56b128caff052f106046cbe65d26122048e247f9a7b3115bf09be

See more details on using hashes here.

Supported by

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