Skip to main content

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

Project description

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.

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

ladybug_comfort-0.18.59.tar.gz (151.7 kB view details)

Uploaded Source

Built Distribution

ladybug_comfort-0.18.59-py2.py3-none-any.whl (177.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ladybug_comfort-0.18.59.tar.gz.

File metadata

  • Download URL: ladybug_comfort-0.18.59.tar.gz
  • Upload date:
  • Size: 151.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ladybug_comfort-0.18.59.tar.gz
Algorithm Hash digest
SHA256 5b3fae463e4e07fa4c08983587e3ac9af0dc049b20778c09b867a9e001a2984a
MD5 e7e41b3a48644836d8df1418dffb4b56
BLAKE2b-256 d387a7d184f0fbff9daa8f19e15f2520690a57d034f3b777da94e9feee4685a4

See more details on using hashes here.

File details

Details for the file ladybug_comfort-0.18.59-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ladybug_comfort-0.18.59-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8cecb2e35154d9cd09474160d7374ed3ef928dc0732cf78bc22efba69b4c6619
MD5 82eef0f3a201ccf147a93d2f550d41eb
BLAKE2b-256 19dffdcc9b0eccc697c500836312e479ad8d6d0f9a70d4af07022f305bd89397

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