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
Documentation
Available at https://natlabrockies.github.io/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/NatLabRockies/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.
- Some popular alternatives are:
- pyenv and the virtualenv plugin work together nicely for Linux/Mac machines
- virtualenv
- miniconda
- uv
- Some popular alternatives are:
Once you have set up your environment:
- Update pip and setuptools:
pip install -U pip setuptools - Install the repository 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 ruff.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thermalnetwork-0.5.0.tar.gz.
File metadata
- Download URL: thermalnetwork-0.5.0.tar.gz
- Upload date:
- Size: 12.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2206a0a4ac862c6c647fff1f77582bd320db925386350ac6ed49504e73aa7d89
|
|
| MD5 |
ea65774f329388d4345971399b8c2e2e
|
|
| BLAKE2b-256 |
fbc22d3c1d30313eca935c52077a3a2b105e7326429674aa8756d5b73251aaee
|
Provenance
The following attestation bundles were made for thermalnetwork-0.5.0.tar.gz:
Publisher:
pypi_release.yml on NatLabRockies/ThermalNetwork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thermalnetwork-0.5.0.tar.gz -
Subject digest:
2206a0a4ac862c6c647fff1f77582bd320db925386350ac6ed49504e73aa7d89 - Sigstore transparency entry: 864727021
- Sigstore integration time:
-
Permalink:
NatLabRockies/ThermalNetwork@f1b798bba899db422882bb423a88497b4980023e -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_release.yml@f1b798bba899db422882bb423a88497b4980023e -
Trigger Event:
release
-
Statement type:
File details
Details for the file thermalnetwork-0.5.0-py3-none-any.whl.
File metadata
- Download URL: thermalnetwork-0.5.0-py3-none-any.whl
- Upload date:
- Size: 12.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
249e3bd50d75d51e15bea2803c7ffc2e6b80f0c6ddc5848e03799cf1d6de200c
|
|
| MD5 |
6584a90e5accf2e94bbf2b85aab3cbea
|
|
| BLAKE2b-256 |
37927781207245c38b8f815fef91e9e99b8eb3abbc0b95287bbe527c257da4c3
|
Provenance
The following attestation bundles were made for thermalnetwork-0.5.0-py3-none-any.whl:
Publisher:
pypi_release.yml on NatLabRockies/ThermalNetwork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thermalnetwork-0.5.0-py3-none-any.whl -
Subject digest:
249e3bd50d75d51e15bea2803c7ffc2e6b80f0c6ddc5848e03799cf1d6de200c - Sigstore transparency entry: 864727045
- Sigstore integration time:
-
Permalink:
NatLabRockies/ThermalNetwork@f1b798bba899db422882bb423a88497b4980023e -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_release.yml@f1b798bba899db422882bb423a88497b4980023e -
Trigger Event:
release
-
Statement type: