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.103.tar.gz (151.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ladybug_comfort-0.18.103-py3-none-any.whl (177.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ladybug_comfort-0.18.103.tar.gz
  • Upload date:
  • Size: 151.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.12

File hashes

Hashes for ladybug_comfort-0.18.103.tar.gz
Algorithm Hash digest
SHA256 7395b8e9fab38af6ae9e7bc9357c11a491f1c4701ffe2dec303de2fd4f199128
MD5 1b3a5f9f76b6843d3abcea0916e810bb
BLAKE2b-256 dec9258c3ad6bb481fe16db798fdc4e8b32d37a5b6923fc5ce4f82a7382e9a9d

See more details on using hashes here.

File details

Details for the file ladybug_comfort-0.18.103-py3-none-any.whl.

File metadata

File hashes

Hashes for ladybug_comfort-0.18.103-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea0459542b009bd682bf0193d00509f7dba1c997c7d852b67581833bb4a8472
MD5 4b4d6e1d35464c475e380b43e2fde19d
BLAKE2b-256 c65334791c12c257c9e216a065c92dc504616ec527f60e17f431ea0a3845adc7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page