labwelfare package

Submodules

labwelfare.hli module

Heat load index.

Calculate the heat load index based on the possible arguments that may be used, in which case the wind speed values in km/h and relative humidity will have to be passed. Already for the other arguments you must pass temperature of the black globe or air temperature and solar radiation.

Args:

indicator (bool): if true return heat load index and indicator. kwargs (dict): requires keys rel_hum, wind_speed, If you have the

black globe temperature value use the bg_temp key otherwise enter the air temperature air_temp, solar radiation solar_rad keys.
Returns:
tuple: if indicator true return tuple (heat load index, indicator).

Module contents

labwelfare.hli(indicator=False, **kwargs)[source]

Heat load index.

Calculate the heat load index based on the possible arguments that may be used, in which case the wind speed values in km/h and relative humidity will have to be passed. Already for the other arguments you must pass temperature of the black globe or air temperature and solar radiation.

Args:

indicator (bool): if true return heat load index and indicator. kwargs (dict): requires keys rel_hum, wind_speed, If you have the

black globe temperature value use the bg_temp key otherwise enter the air temperature air_temp, solar radiation solar_rad keys.
Returns:
tuple: if indicator true return tuple (heat load index, indicator).
labwelfare.hli_bg(bg_temp, rel_hum, wind_speed)[source]

Heat Load Index.

Args:
bg_temp (float): black globe temperature (°C). rel_hum (float): relative humidity (%). wind_speed (float): wind speed (km/h).
Returns:
float: heat load index value
Raises:
ValueError: If bg_temp, rel_hum and wind_speed not a number.
If rel_hum or wind_speed is a negative number.
labwelfare.hli_indicator(hli, threshold=86)[source]

Heat load index indicator.

Args:
hli (float): heat load index value. threshold (float): threshold value.
Returns:
string: indicating the thermal risk of the animal.
Raises:
ValueError: If hli and threshold not a number.
If hli or threshold is a negative number.
labwelfare.hli_no_bg(air_temp, rel_hum, solar_rad, wind_speed)[source]

Heat load index indicator no black globe.

Args:
air_temp (float): air temperature (°C). rel_hum (float): relative humidity (%). solar_rad (float): solar radiation value. wind_speed (float): wind speed (km/h).
Returns:
float: heat load index value
Raises:
ValueError: If hli and thresgold not a number.
If hli or threshold is a negative number.
class labwelfare.Indicator[source]

Bases: enum.Enum

Indicator risk.

EXTREME = 5
HIGH = 4
LOW = 2
MEDIUM = 3
NEGLEGIBLE = 1