Skip to main content

Ladybug

Build Status Coverage Status

Python 3.10 Python 3.7 Python 2.7 IronPython

ladybug-comfort

Ladybug-comfort is a Python library that adds thermal comfort functionalities to ladybug-core.

API Documentation

Installation

To install the library use:

pip install ladybug-comfort

If you want to also include the dependencies needed for thermal mapping use:

pip install -U honeybee-energy[mapping]

To check if the Ladybug-comfort command line interface is installed correctly, use ladybug-comfort --help.

Usage

"""Get the percentage of time outdoor conditions are comfortable with/without sun + wind"""
from ladybug.epw import EPW
from ladybug_comfort.collection.utci import UTCI

epw_file_path = './tests/epw/chicago.epw'
epw = EPW(epw_file_path)
utci_obj_exposed = UTCI.from_epw(epw, include_wind=True, include_sun=True)
utci_obj_protected = UTCI.from_epw(epw, include_wind=False, include_sun=False)

print(utci_obj_exposed.percent_neutral)  # comfortable percent of time with sun + wind
print(utci_obj_protected.percent_neutral)  # comfortable percent of time without sun + wind

Local Development

  1. Clone this repo locally
git clone git@github.com:ladybug-tools/ladybug-comfort.git

# or

git clone https://github.com/ladybug-tools/ladybug-comfort.git
  1. Install dependencies:
cd ladybug-comfort
pip install -r dev-requirements.txt
pip install -r requirements.txt
  1. Run Tests:
python -m pytest ./tests
  1. Generate Documentation:
sphinx-apidoc -f -e -d 4 -o ./docs ./ladybug_comfort
sphinx-build -b html ./docs ./docs/_build/docs

Derivative Work

Ladybug-comfort is a derivative work of the following software projects:

Applicable copyright notices for these works can be found within the relevant .py files.

Metadata

Release files for ladybug-comfort 0.19.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ladybug-comfort 0.19.16
File Size Uploaded Provenance Actions
ladybug_comfort-0.19.16.tar.gz 153.1 kB Without provenance Details for ladybug_comfort-0.19.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ladybug-comfort 0.19.16
File Interpreter ABI Platform Actions
ladybug_comfort-0.19.16-py3-none-any.whl Python 3 none any Details for ladybug_comfort-0.19.16-py3-none-any.whl

Total release size: 330.8 kB

Release files / ladybug_comfort-0.19.16.tar.gz

Download URL ladybug_comfort-0.19.16.tar.gz
Size 153.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c5f12a9cbd5b4b9ef11692499e3736c43e6a47435fb1b727f1e0428a1bc24f78
BLAKE2b-256 checksum
How to use checksums
c5548f287e3870e99a7b3ff6fa7ed1e985aadda8ad89562720a683349931a2f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.16

Release files / ladybug_comfort-0.19.16-py3-none-any.whl

Download URL ladybug_comfort-0.19.16-py3-none-any.whl
Size 177.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35d2a6ac2cc545642ceea05c9e557e9a3a221b57f9dd46d96a4bdc4d6d18cf8a
BLAKE2b-256 checksum
How to use checksums
43fe8fbd672f8e64d638bf1d3f42bce303dd5afca29930097573e8598a57f8b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.16

Security for ladybug-comfort 0.19.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.19.16 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page