Skip to main content

A thermal network solver for GHE sizing.

Project description

ThermalNetwork

A library for sizing multiple ground heat exchangers distributed around a single-pipe thermal network.

Installation

pip install ThermalNetwork

Usage

This package has a command-line interface, intended to be used via URBANopt. To access the CLI directly, after installing call thermalnetwork --help for all the commands.

Developer installation

  • Clone the repository: git clone https://github.com/NREL/ThermalNetwork.git
  • Change directories into the repository: cd ThermalNetwork
  • We recommend using virtual environments on principle to avoid dependencies colliding between your Python projects. venv is the Python native solution that will work everywhere, though other options may be more user-friendly.

Once you have set up your environment:

  • Update pip and setuptools: pip install -U pip setuptools
  • Install the respository with developer dependencies: pip install -e .[dev]
  • Activate pre-commit (only once, after making a new venv): pre-commit install
    • Runs automatically on your staged changes before every commit
  • To check the whole repo, run pre-commit run --all-files
    • Settings and documentation links for pre-commit and ruff are in .pre-commit-config.yaml and pyproject.toml
    • Pre-commit will run automatically during CI, linting and formatting the entire repository.

Testing

Once you are set up as a developer, run pytest from the root dir. Increase verbosity with -v and -vv.

Test coverage will be reported to stdout.

Test files are in thermalnetwork/tests/

Test output will be written to thermalnetwork/tests/test_output/

Releasing

Versioning is done by GitHub tag, thanks to SetupTools-SCM. Use semantic versioning when tagging. When a new release is made in GitHub, a workflow automatically publishes to PyPI.

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

ThermalNetwork-0.2.4.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

ThermalNetwork-0.2.4-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file ThermalNetwork-0.2.4.tar.gz.

File metadata

  • Download URL: ThermalNetwork-0.2.4.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for ThermalNetwork-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6173995df72866a42f115588c94ff9b75fa87ee274b4cbb7bb452d7b340c40cc
MD5 3c0b62d234d80e5bd8b383847343080a
BLAKE2b-256 c7fb2f16c1a4be87bf99ad9c7f9470fc40a94147ac0de08c50928a12cf1ed106

See more details on using hashes here.

File details

Details for the file ThermalNetwork-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ThermalNetwork-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 112744201d92d484384d767fe0c1d47b69988ae2d592bd5275c7d0f753f13efe
MD5 9024680693616453787f4d7eae21e62e
BLAKE2b-256 80943496c8452bbd5081daf3eba37507ccfc0f5fd45958f3f4c9fde4cb59228f

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