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
    • Includes linting and formatting via ruff
  • 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 results will be saved to htmlcov/index.html.

Test files are in tests/

Test output will be written to 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.5.tar.gz (12.0 MB view details)

Uploaded Source

Built Distribution

ThermalNetwork-0.2.5-py3-none-any.whl (12.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ThermalNetwork-0.2.5.tar.gz
  • Upload date:
  • Size: 12.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ThermalNetwork-0.2.5.tar.gz
Algorithm Hash digest
SHA256 c0107d5117d156b10792c3dcb5f293735aaa0d851e55f181718c1d5190ebfbaf
MD5 208350553ffd7e04a154eaa0b562709d
BLAKE2b-256 f33b0c0328ee1702b447fef05a7efcf84fa30da342249caf49025c13a42ae8c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ThermalNetwork-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9708e864402a8a7dbd2e32d0f83c8b19b19738318f0ff4cce81287219a8c22
MD5 3dfed779145fd5db5ed5e7e21dced56f
BLAKE2b-256 24f5dd11336089dea9246532cebc7e89fe4e8ddf110f7b0d35da2b04a7c72973

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