repo
stringlengths
7
55
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
19
28.4k
docstring
stringlengths
1
46.9k
docstring_tokens
listlengths
1
1.97k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws004c
def ws004c(self, value=None): """Corresponds to IDD Field `ws004c` Args: value (float): value for IDD Field `ws004c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws004c`'.format(value)) self._ws004c = value
python
def ws004c(self, value=None): """Corresponds to IDD Field `ws004c` Args: value (float): value for IDD Field `ws004c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws004c`'.format(value)) self._ws004c = value
[ "def", "ws004c", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws004c`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws004c", "=", "value" ]
Corresponds to IDD Field `ws004c` Args: value (float): value for IDD Field `ws004c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws004c" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1350-L1370
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_ws004c
def db_ws004c(self, value=None): """ Corresponds to IDD Field `db_ws004c` Mean coincident dry-bulb temperature to wind speed corresponding to 0.40% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws004c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_ws004c`'.format(value)) self._db_ws004c = value
python
def db_ws004c(self, value=None): """ Corresponds to IDD Field `db_ws004c` Mean coincident dry-bulb temperature to wind speed corresponding to 0.40% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws004c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_ws004c`'.format(value)) self._db_ws004c = value
[ "def", "db_ws004c", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_ws004c`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_ws004c", "=", "value" ]
Corresponds to IDD Field `db_ws004c` Mean coincident dry-bulb temperature to wind speed corresponding to 0.40% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws004c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_ws004c", "Mean", "coincident", "dry", "-", "bulb", "temperature", "to", "wind", "speed", "corresponding", "to", "0", ".", "40%", "cumulative", "frequency", "for", "coldest", "month" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1383-L1403
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws010c
def ws010c(self, value=None): """ Corresponds to IDD Field `ws010c` Wind speed corresponding to 1.0% cumulative frequency of occurrence for coldest month; Args: value (float): value for IDD Field `ws010c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws010c`'.format(value)) self._ws010c = value
python
def ws010c(self, value=None): """ Corresponds to IDD Field `ws010c` Wind speed corresponding to 1.0% cumulative frequency of occurrence for coldest month; Args: value (float): value for IDD Field `ws010c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws010c`'.format(value)) self._ws010c = value
[ "def", "ws010c", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws010c`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws010c", "=", "value" ]
Corresponds to IDD Field `ws010c` Wind speed corresponding to 1.0% cumulative frequency of occurrence for coldest month; Args: value (float): value for IDD Field `ws010c` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws010c", "Wind", "speed", "corresponding", "to", "1", ".", "0%", "cumulative", "frequency", "of", "occurrence", "for", "coldest", "month", ";" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1416-L1437
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_ws010c
def db_ws010c(self, value=None): """ Corresponds to IDD Field `db_ws010c` Mean coincident dry-bulb temperature to wind speed corresponding to 1.0% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws010c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_ws010c`'.format(value)) self._db_ws010c = value
python
def db_ws010c(self, value=None): """ Corresponds to IDD Field `db_ws010c` Mean coincident dry-bulb temperature to wind speed corresponding to 1.0% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws010c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_ws010c`'.format(value)) self._db_ws010c = value
[ "def", "db_ws010c", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_ws010c`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_ws010c", "=", "value" ]
Corresponds to IDD Field `db_ws010c` Mean coincident dry-bulb temperature to wind speed corresponding to 1.0% cumulative frequency for coldest month Args: value (float): value for IDD Field `db_ws010c` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_ws010c", "Mean", "coincident", "dry", "-", "bulb", "temperature", "to", "wind", "speed", "corresponding", "to", "1", ".", "0%", "cumulative", "frequency", "for", "coldest", "month" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1450-L1470
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws_db996
def ws_db996(self, value=None): """ Corresponds to IDD Field `ws_db996` Mean wind speed coincident with 99.6% dry-bulb temperature Args: value (float): value for IDD Field `ws_db996` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws_db996`'.format(value)) self._ws_db996 = value
python
def ws_db996(self, value=None): """ Corresponds to IDD Field `ws_db996` Mean wind speed coincident with 99.6% dry-bulb temperature Args: value (float): value for IDD Field `ws_db996` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws_db996`'.format(value)) self._ws_db996 = value
[ "def", "ws_db996", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws_db996`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws_db996", "=", "value" ]
Corresponds to IDD Field `ws_db996` Mean wind speed coincident with 99.6% dry-bulb temperature Args: value (float): value for IDD Field `ws_db996` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws_db996", "Mean", "wind", "speed", "coincident", "with", "99", ".", "6%", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1483-L1503
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wd_db996
def wd_db996(self, value=None): """ Corresponds to IDD Field `wd_db996` most frequent wind direction corresponding to mean wind speed coincident with 99.6% dry-bulb temperature degrees from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db996` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wd_db996`'.format(value)) self._wd_db996 = value
python
def wd_db996(self, value=None): """ Corresponds to IDD Field `wd_db996` most frequent wind direction corresponding to mean wind speed coincident with 99.6% dry-bulb temperature degrees from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db996` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wd_db996`'.format(value)) self._wd_db996 = value
[ "def", "wd_db996", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wd_db996`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wd_db996", "=", "value" ]
Corresponds to IDD Field `wd_db996` most frequent wind direction corresponding to mean wind speed coincident with 99.6% dry-bulb temperature degrees from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db996` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wd_db996", "most", "frequent", "wind", "direction", "corresponding", "to", "mean", "wind", "speed", "coincident", "with", "99", ".", "6%", "dry", "-", "bulb", "temperature", "degrees", "from", "north", "(", "east", "=", "90", "deg", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1516-L1537
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.design_stat_cooling
def design_stat_cooling(self, value="Cooling"): """Corresponds to IDD Field `design_stat_cooling` Args: value (str): value for IDD Field `design_stat_cooling` Accepted values are: - Cooling Default value: Cooling if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `design_stat_cooling`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `design_stat_cooling`') vals = set() vals.add("Cooling") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `design_stat_cooling`'.format(value)) self._design_stat_cooling = value
python
def design_stat_cooling(self, value="Cooling"): """Corresponds to IDD Field `design_stat_cooling` Args: value (str): value for IDD Field `design_stat_cooling` Accepted values are: - Cooling Default value: Cooling if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `design_stat_cooling`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `design_stat_cooling`') vals = set() vals.add("Cooling") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `design_stat_cooling`'.format(value)) self._design_stat_cooling = value
[ "def", "design_stat_cooling", "(", "self", ",", "value", "=", "\"Cooling\"", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `design_stat_cooling`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `design_stat_cooling`'", ")", "vals", "=", "set", "(", ")", "vals", ".", "add", "(", "\"Cooling\"", ")", "if", "value", "not", "in", "vals", ":", "raise", "ValueError", "(", "'value {} is not an accepted value for '", "'field `design_stat_cooling`'", ".", "format", "(", "value", ")", ")", "self", ".", "_design_stat_cooling", "=", "value" ]
Corresponds to IDD Field `design_stat_cooling` Args: value (str): value for IDD Field `design_stat_cooling` Accepted values are: - Cooling Default value: Cooling if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "design_stat_cooling" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1550-L1581
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbr
def dbr(self, value=None): """Corresponds to IDD Field `dbr` Daily temperature range for hottest month. [defined as mean of the difference between daily maximum and daily minimum dry-bulb temperatures for hottest month] Args: value (float): value for IDD Field `dbr` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbr`'.format(value)) self._dbr = value
python
def dbr(self, value=None): """Corresponds to IDD Field `dbr` Daily temperature range for hottest month. [defined as mean of the difference between daily maximum and daily minimum dry-bulb temperatures for hottest month] Args: value (float): value for IDD Field `dbr` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbr`'.format(value)) self._dbr = value
[ "def", "dbr", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbr`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbr", "=", "value" ]
Corresponds to IDD Field `dbr` Daily temperature range for hottest month. [defined as mean of the difference between daily maximum and daily minimum dry-bulb temperatures for hottest month] Args: value (float): value for IDD Field `dbr` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbr", "Daily", "temperature", "range", "for", "hottest", "month", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1634-L1658
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db004
def db004(self, value=None): """ Corresponds to IDD Field `db004` Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db004`'.format(value)) self._db004 = value
python
def db004(self, value=None): """ Corresponds to IDD Field `db004` Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db004`'.format(value)) self._db004 = value
[ "def", "db004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db004", "=", "value" ]
Corresponds to IDD Field `db004` Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db004", "Dry", "-", "bulb", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1671-L1691
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb_db004
def wb_db004(self, value=None): """ Corresponds to IDD Field `wb_db004` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db004`'.format(value)) self._wb_db004 = value
python
def wb_db004(self, value=None): """ Corresponds to IDD Field `wb_db004` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db004`'.format(value)) self._wb_db004 = value
[ "def", "wb_db004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb_db004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb_db004", "=", "value" ]
Corresponds to IDD Field `wb_db004` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb_db004", "mean", "coincident", "wet", "-", "bulb", "temperature", "to", "Dry", "-", "bulb", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1704-L1725
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db010
def db010(self, value=None): """ Corresponds to IDD Field `db010` Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db010`'.format(value)) self._db010 = value
python
def db010(self, value=None): """ Corresponds to IDD Field `db010` Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db010`'.format(value)) self._db010 = value
[ "def", "db010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db010", "=", "value" ]
Corresponds to IDD Field `db010` Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db010", "Dry", "-", "bulb", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1738-L1758
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb_db010
def wb_db010(self, value=None): """ Corresponds to IDD Field `wb_db010` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db010`'.format(value)) self._wb_db010 = value
python
def wb_db010(self, value=None): """ Corresponds to IDD Field `wb_db010` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db010`'.format(value)) self._wb_db010 = value
[ "def", "wb_db010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb_db010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb_db010", "=", "value" ]
Corresponds to IDD Field `wb_db010` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb_db010", "mean", "coincident", "wet", "-", "bulb", "temperature", "to", "Dry", "-", "bulb", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1771-L1792
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db020
def db020(self, value=None): """ Corresponds to IDD Field `db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db020`'.format(value)) self._db020 = value
python
def db020(self, value=None): """ Corresponds to IDD Field `db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db020`'.format(value)) self._db020 = value
[ "def", "db020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db020", "=", "value" ]
Corresponds to IDD Field `db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db020", "mean", "coincident", "wet", "-", "bulb", "temperature", "to", "Dry", "-", "bulb", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1805-L1826
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb_db020
def wb_db020(self, value=None): """ Corresponds to IDD Field `wb_db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db020`'.format(value)) self._wb_db020 = value
python
def wb_db020(self, value=None): """ Corresponds to IDD Field `wb_db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb_db020`'.format(value)) self._wb_db020 = value
[ "def", "wb_db020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb_db020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb_db020", "=", "value" ]
Corresponds to IDD Field `wb_db020` mean coincident wet-bulb temperature to Dry-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence (warm conditions) Args: value (float): value for IDD Field `wb_db020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb_db020", "mean", "coincident", "wet", "-", "bulb", "temperature", "to", "Dry", "-", "bulb", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence", "(", "warm", "conditions", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1839-L1860
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb004
def wb004(self, value=None): """ Corresponds to IDD Field `wb004` Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb004`'.format(value)) self._wb004 = value
python
def wb004(self, value=None): """ Corresponds to IDD Field `wb004` Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb004`'.format(value)) self._wb004 = value
[ "def", "wb004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb004", "=", "value" ]
Corresponds to IDD Field `wb004` Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb004", "Wet", "-", "bulb", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1873-L1893
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_wb004
def db_wb004(self, value=None): """ Corresponds to IDD Field `db_wb004` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb004`'.format(value)) self._db_wb004 = value
python
def db_wb004(self, value=None): """ Corresponds to IDD Field `db_wb004` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb004`'.format(value)) self._db_wb004 = value
[ "def", "db_wb004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_wb004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_wb004", "=", "value" ]
Corresponds to IDD Field `db_wb004` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_wb004", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Wet", "-", "bulb", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1906-L1927
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb010
def wb010(self, value=None): """ Corresponds to IDD Field `wb010` Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb010`'.format(value)) self._wb010 = value
python
def wb010(self, value=None): """ Corresponds to IDD Field `wb010` Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb010`'.format(value)) self._wb010 = value
[ "def", "wb010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb010", "=", "value" ]
Corresponds to IDD Field `wb010` Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb010", "Wet", "-", "bulb", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1940-L1960
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_wb010
def db_wb010(self, value=None): """ Corresponds to IDD Field `db_wb010` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb010`'.format(value)) self._db_wb010 = value
python
def db_wb010(self, value=None): """ Corresponds to IDD Field `db_wb010` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb010`'.format(value)) self._db_wb010 = value
[ "def", "db_wb010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_wb010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_wb010", "=", "value" ]
Corresponds to IDD Field `db_wb010` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_wb010", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Wet", "-", "bulb", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L1973-L1994
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wb020
def wb020(self, value=None): """ Corresponds to IDD Field `wb020` Wet-bulb temperature corresponding to 02.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb020`'.format(value)) self._wb020 = value
python
def wb020(self, value=None): """ Corresponds to IDD Field `wb020` Wet-bulb temperature corresponding to 02.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wb020`'.format(value)) self._wb020 = value
[ "def", "wb020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wb020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wb020", "=", "value" ]
Corresponds to IDD Field `wb020` Wet-bulb temperature corresponding to 02.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wb020", "Wet", "-", "bulb", "temperature", "corresponding", "to", "02", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2007-L2027
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_wb020
def db_wb020(self, value=None): """ Corresponds to IDD Field `db_wb020` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb020`'.format(value)) self._db_wb020 = value
python
def db_wb020(self, value=None): """ Corresponds to IDD Field `db_wb020` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_wb020`'.format(value)) self._db_wb020 = value
[ "def", "db_wb020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_wb020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_wb020", "=", "value" ]
Corresponds to IDD Field `db_wb020` mean coincident dry-bulb temperature to Wet-bulb temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_wb020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_wb020", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Wet", "-", "bulb", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2040-L2061
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws_db004
def ws_db004(self, value=None): """ Corresponds to IDD Field `ws_db004` Mean wind speed coincident with 0.4% dry-bulb temperature Args: value (float): value for IDD Field `ws_db004` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws_db004`'.format(value)) self._ws_db004 = value
python
def ws_db004(self, value=None): """ Corresponds to IDD Field `ws_db004` Mean wind speed coincident with 0.4% dry-bulb temperature Args: value (float): value for IDD Field `ws_db004` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws_db004`'.format(value)) self._ws_db004 = value
[ "def", "ws_db004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws_db004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws_db004", "=", "value" ]
Corresponds to IDD Field `ws_db004` Mean wind speed coincident with 0.4% dry-bulb temperature Args: value (float): value for IDD Field `ws_db004` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws_db004", "Mean", "wind", "speed", "coincident", "with", "0", ".", "4%", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2074-L2094
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wd_db004
def wd_db004(self, value=None): """ Corresponds to IDD Field `wd_db004` corresponding most frequent wind direction Mean wind speed coincident with 0.4% dry-bulb temperature degrees true from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db004` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wd_db004`'.format(value)) self._wd_db004 = value
python
def wd_db004(self, value=None): """ Corresponds to IDD Field `wd_db004` corresponding most frequent wind direction Mean wind speed coincident with 0.4% dry-bulb temperature degrees true from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db004` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wd_db004`'.format(value)) self._wd_db004 = value
[ "def", "wd_db004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wd_db004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wd_db004", "=", "value" ]
Corresponds to IDD Field `wd_db004` corresponding most frequent wind direction Mean wind speed coincident with 0.4% dry-bulb temperature degrees true from north (east = 90 deg) Args: value (float): value for IDD Field `wd_db004` Unit: deg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wd_db004", "corresponding", "most", "frequent", "wind", "direction", "Mean", "wind", "speed", "coincident", "with", "0", ".", "4%", "dry", "-", "bulb", "temperature", "degrees", "true", "from", "north", "(", "east", "=", "90", "deg", ")" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2107-L2129
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dp004
def dp004(self, value=None): """ Corresponds to IDD Field `dp004` Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp004`'.format(value)) self._dp004 = value
python
def dp004(self, value=None): """ Corresponds to IDD Field `dp004` Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp004`'.format(value)) self._dp004 = value
[ "def", "dp004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dp004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dp004", "=", "value" ]
Corresponds to IDD Field `dp004` Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dp004", "Dew", "-", "point", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2142-L2162
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.hr_dp004
def hr_dp004(self, value=None): """ Corresponds to IDD Field `hr_dp004` humidity ratio corresponding to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `hr_dp004` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp004`'.format(value)) self._hr_dp004 = value
python
def hr_dp004(self, value=None): """ Corresponds to IDD Field `hr_dp004` humidity ratio corresponding to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `hr_dp004` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp004`'.format(value)) self._hr_dp004 = value
[ "def", "hr_dp004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `hr_dp004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_hr_dp004", "=", "value" ]
Corresponds to IDD Field `hr_dp004` humidity ratio corresponding to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `hr_dp004` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "hr_dp004", "humidity", "ratio", "corresponding", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2175-L2195
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_dp004
def db_dp004(self, value=None): """ Corresponds to IDD Field `db_dp004` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp004`'.format(value)) self._db_dp004 = value
python
def db_dp004(self, value=None): """ Corresponds to IDD Field `db_dp004` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp004`'.format(value)) self._db_dp004 = value
[ "def", "db_dp004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_dp004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_dp004", "=", "value" ]
Corresponds to IDD Field `db_dp004` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_dp004", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2208-L2229
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dp010
def dp010(self, value=None): """ Corresponds to IDD Field `dp010` Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp010`'.format(value)) self._dp010 = value
python
def dp010(self, value=None): """ Corresponds to IDD Field `dp010` Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp010`'.format(value)) self._dp010 = value
[ "def", "dp010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dp010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dp010", "=", "value" ]
Corresponds to IDD Field `dp010` Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dp010", "Dew", "-", "point", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2242-L2262
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.hr_dp010
def hr_dp010(self, value=None): """ Corresponds to IDD Field `hr_dp010` humidity ratio corresponding to Dew-point temperature corresponding to 1.0,% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp010` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp010`'.format(value)) self._hr_dp010 = value
python
def hr_dp010(self, value=None): """ Corresponds to IDD Field `hr_dp010` humidity ratio corresponding to Dew-point temperature corresponding to 1.0,% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp010` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp010`'.format(value)) self._hr_dp010 = value
[ "def", "hr_dp010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `hr_dp010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_hr_dp010", "=", "value" ]
Corresponds to IDD Field `hr_dp010` humidity ratio corresponding to Dew-point temperature corresponding to 1.0,% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp010` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "hr_dp010", "humidity", "ratio", "corresponding", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "1", ".", "0", "%", "annual", "cumulative", "frequency", "of", "occurrence", "calculated", "at", "the", "standard", "atmospheric", "pressure", "at", "elevation", "of", "station" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2275-L2296
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_dp010
def db_dp010(self, value=None): """ Corresponds to IDD Field `db_dp010` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp010`'.format(value)) self._db_dp010 = value
python
def db_dp010(self, value=None): """ Corresponds to IDD Field `db_dp010` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp010`'.format(value)) self._db_dp010 = value
[ "def", "db_dp010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_dp010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_dp010", "=", "value" ]
Corresponds to IDD Field `db_dp010` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_dp010", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2309-L2330
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dp020
def dp020(self, value=None): """ Corresponds to IDD Field `dp020` Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp020`'.format(value)) self._dp020 = value
python
def dp020(self, value=None): """ Corresponds to IDD Field `dp020` Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dp020`'.format(value)) self._dp020 = value
[ "def", "dp020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dp020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dp020", "=", "value" ]
Corresponds to IDD Field `dp020` Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dp020", "Dew", "-", "point", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2343-L2363
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.hr_dp020
def hr_dp020(self, value=None): """ Corresponds to IDD Field `hr_dp020` humidity ratio corresponding to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp020` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp020`'.format(value)) self._hr_dp020 = value
python
def hr_dp020(self, value=None): """ Corresponds to IDD Field `hr_dp020` humidity ratio corresponding to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp020` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `hr_dp020`'.format(value)) self._hr_dp020 = value
[ "def", "hr_dp020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `hr_dp020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_hr_dp020", "=", "value" ]
Corresponds to IDD Field `hr_dp020` humidity ratio corresponding to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence calculated at the standard atmospheric pressure at elevation of station Args: value (float): value for IDD Field `hr_dp020` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "hr_dp020", "humidity", "ratio", "corresponding", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence", "calculated", "at", "the", "standard", "atmospheric", "pressure", "at", "elevation", "of", "station" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2376-L2397
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_dp020
def db_dp020(self, value=None): """ Corresponds to IDD Field `db_dp020` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp020`'.format(value)) self._db_dp020 = value
python
def db_dp020(self, value=None): """ Corresponds to IDD Field `db_dp020` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_dp020`'.format(value)) self._db_dp020 = value
[ "def", "db_dp020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_dp020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_dp020", "=", "value" ]
Corresponds to IDD Field `db_dp020` mean coincident dry-bulb temperature to Dew-point temperature corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_dp020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_dp020", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Dew", "-", "point", "temperature", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2410-L2431
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.en004
def en004(self, value=None): """ Corresponds to IDD Field `en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en004` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en004`'.format(value)) self._en004 = value
python
def en004(self, value=None): """ Corresponds to IDD Field `en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en004` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en004`'.format(value)) self._en004 = value
[ "def", "en004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `en004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_en004", "=", "value" ]
Corresponds to IDD Field `en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en004` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "en004", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2444-L2465
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_en004
def db_en004(self, value=None): """ Corresponds to IDD Field `db_en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en004`'.format(value)) self._db_en004 = value
python
def db_en004(self, value=None): """ Corresponds to IDD Field `db_en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en004`'.format(value)) self._db_en004 = value
[ "def", "db_en004", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_en004`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_en004", "=", "value" ]
Corresponds to IDD Field `db_en004` mean coincident dry-bulb temperature to Enthalpy corresponding to 0.4% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en004` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_en004", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "0", ".", "4%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2478-L2499
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.en010
def en010(self, value=None): """ Corresponds to IDD Field `en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en010` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en010`'.format(value)) self._en010 = value
python
def en010(self, value=None): """ Corresponds to IDD Field `en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en010` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en010`'.format(value)) self._en010 = value
[ "def", "en010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `en010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_en010", "=", "value" ]
Corresponds to IDD Field `en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en010` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "en010", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2512-L2533
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_en010
def db_en010(self, value=None): """ Corresponds to IDD Field `db_en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en010`'.format(value)) self._db_en010 = value
python
def db_en010(self, value=None): """ Corresponds to IDD Field `db_en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en010`'.format(value)) self._db_en010 = value
[ "def", "db_en010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_en010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_en010", "=", "value" ]
Corresponds to IDD Field `db_en010` mean coincident dry-bulb temperature to Enthalpy corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en010` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_en010", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2546-L2567
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.en020
def en020(self, value=None): """ Corresponds to IDD Field `en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en020` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en020`'.format(value)) self._en020 = value
python
def en020(self, value=None): """ Corresponds to IDD Field `en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en020` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `en020`'.format(value)) self._en020 = value
[ "def", "en020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `en020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_en020", "=", "value" ]
Corresponds to IDD Field `en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `en020` Unit: kJ/kg if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "en020", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2580-L2601
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.db_en020
def db_en020(self, value=None): """ Corresponds to IDD Field `db_en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en020`'.format(value)) self._db_en020 = value
python
def db_en020(self, value=None): """ Corresponds to IDD Field `db_en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `db_en020`'.format(value)) self._db_en020 = value
[ "def", "db_en020", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `db_en020`'", ".", "format", "(", "value", ")", ")", "self", ".", "_db_en020", "=", "value" ]
Corresponds to IDD Field `db_en020` mean coincident dry-bulb temperature to Enthalpy corresponding to 2.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `db_en020` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "db_en020", "mean", "coincident", "dry", "-", "bulb", "temperature", "to", "Enthalpy", "corresponding", "to", "2", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2614-L2635
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.hrs_84_and_db12_8_or_20_6
def hrs_84_and_db12_8_or_20_6(self, value=None): """ Corresponds to IDD Field `hrs_84_and_db12_8_or_20_6` Number of hours between 8 AM and 4 PM (inclusive) with dry-bulb temperature between 12.8 and 20.6 C Args: value (float): value for IDD Field `hrs_84_and_db12_8_or_20_6` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `hrs_84_and_db12_8_or_20_6`'.format(value)) self._hrs_84_and_db12_8_or_20_6 = value
python
def hrs_84_and_db12_8_or_20_6(self, value=None): """ Corresponds to IDD Field `hrs_84_and_db12_8_or_20_6` Number of hours between 8 AM and 4 PM (inclusive) with dry-bulb temperature between 12.8 and 20.6 C Args: value (float): value for IDD Field `hrs_84_and_db12_8_or_20_6` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `hrs_84_and_db12_8_or_20_6`'.format(value)) self._hrs_84_and_db12_8_or_20_6 = value
[ "def", "hrs_84_and_db12_8_or_20_6", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `hrs_84_and_db12_8_or_20_6`'", ".", "format", "(", "value", ")", ")", "self", ".", "_hrs_84_and_db12_8_or_20_6", "=", "value" ]
Corresponds to IDD Field `hrs_84_and_db12_8_or_20_6` Number of hours between 8 AM and 4 PM (inclusive) with dry-bulb temperature between 12.8 and 20.6 C Args: value (float): value for IDD Field `hrs_84_and_db12_8_or_20_6` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "hrs_84_and_db12_8_or_20_6", "Number", "of", "hours", "between", "8", "AM", "and", "4", "PM", "(", "inclusive", ")", "with", "dry", "-", "bulb", "temperature", "between", "12", ".", "8", "and", "20", ".", "6", "C" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2648-L2668
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.design_stat_extremes
def design_stat_extremes(self, value="Extremes"): """Corresponds to IDD Field `design_stat_extremes` Args: value (str): value for IDD Field `design_stat_extremes` Accepted values are: - Extremes Default value: Extremes if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `design_stat_extremes`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `design_stat_extremes`') vals = set() vals.add("Extremes") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `design_stat_extremes`'.format(value)) self._design_stat_extremes = value
python
def design_stat_extremes(self, value="Extremes"): """Corresponds to IDD Field `design_stat_extremes` Args: value (str): value for IDD Field `design_stat_extremes` Accepted values are: - Extremes Default value: Extremes if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `design_stat_extremes`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `design_stat_extremes`') vals = set() vals.add("Extremes") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `design_stat_extremes`'.format(value)) self._design_stat_extremes = value
[ "def", "design_stat_extremes", "(", "self", ",", "value", "=", "\"Extremes\"", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `design_stat_extremes`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `design_stat_extremes`'", ")", "vals", "=", "set", "(", ")", "vals", ".", "add", "(", "\"Extremes\"", ")", "if", "value", "not", "in", "vals", ":", "raise", "ValueError", "(", "'value {} is not an accepted value for '", "'field `design_stat_extremes`'", ".", "format", "(", "value", ")", ")", "self", ".", "_design_stat_extremes", "=", "value" ]
Corresponds to IDD Field `design_stat_extremes` Args: value (str): value for IDD Field `design_stat_extremes` Accepted values are: - Extremes Default value: Extremes if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "design_stat_extremes" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2681-L2712
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws010
def ws010(self, value=None): """ Corresponds to IDD Field `ws010` Wind speed corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws010` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws010`'.format(value)) self._ws010 = value
python
def ws010(self, value=None): """ Corresponds to IDD Field `ws010` Wind speed corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws010` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws010`'.format(value)) self._ws010 = value
[ "def", "ws010", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws010`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws010", "=", "value" ]
Corresponds to IDD Field `ws010` Wind speed corresponding to 1.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws010` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws010", "Wind", "speed", "corresponding", "to", "1", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2725-L2745
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws025
def ws025(self, value=None): """ Corresponds to IDD Field `ws025` Wind speed corresponding to 2.5% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws025` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws025`'.format(value)) self._ws025 = value
python
def ws025(self, value=None): """ Corresponds to IDD Field `ws025` Wind speed corresponding to 2.5% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws025` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws025`'.format(value)) self._ws025 = value
[ "def", "ws025", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws025`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws025", "=", "value" ]
Corresponds to IDD Field `ws025` Wind speed corresponding to 2.5% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws025` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws025", "Wind", "speed", "corresponding", "to", "2", ".", "5%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2758-L2778
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.ws050
def ws050(self, value=None): """ Corresponds to IDD Field `ws050` Wind speed corresponding 5.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws050` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws050`'.format(value)) self._ws050 = value
python
def ws050(self, value=None): """ Corresponds to IDD Field `ws050` Wind speed corresponding 5.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws050` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `ws050`'.format(value)) self._ws050 = value
[ "def", "ws050", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ws050`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ws050", "=", "value" ]
Corresponds to IDD Field `ws050` Wind speed corresponding 5.0% annual cumulative frequency of occurrence Args: value (float): value for IDD Field `ws050` Unit: m/s if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ws050", "Wind", "speed", "corresponding", "5", ".", "0%", "annual", "cumulative", "frequency", "of", "occurrence" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2791-L2811
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.wbmax
def wbmax(self, value=None): """ Corresponds to IDD Field `wbmax` Extreme maximum wet-bulb temperature Args: value (float): value for IDD Field `wbmax` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wbmax`'.format(value)) self._wbmax = value
python
def wbmax(self, value=None): """ Corresponds to IDD Field `wbmax` Extreme maximum wet-bulb temperature Args: value (float): value for IDD Field `wbmax` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `wbmax`'.format(value)) self._wbmax = value
[ "def", "wbmax", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `wbmax`'", ".", "format", "(", "value", ")", ")", "self", ".", "_wbmax", "=", "value" ]
Corresponds to IDD Field `wbmax` Extreme maximum wet-bulb temperature Args: value (float): value for IDD Field `wbmax` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "wbmax", "Extreme", "maximum", "wet", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2824-L2844
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin_mean
def dbmin_mean(self, value=None): """ Corresponds to IDD Field `dbmin_mean` Mean of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin_mean`'.format(value)) self._dbmin_mean = value
python
def dbmin_mean(self, value=None): """ Corresponds to IDD Field `dbmin_mean` Mean of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin_mean`'.format(value)) self._dbmin_mean = value
[ "def", "dbmin_mean", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin_mean`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin_mean", "=", "value" ]
Corresponds to IDD Field `dbmin_mean` Mean of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin_mean", "Mean", "of", "extreme", "annual", "minimum", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2857-L2877
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax_mean
def dbmax_mean(self, value=None): """ Corresponds to IDD Field `dbmax_mean` Mean of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax_mean`'.format(value)) self._dbmax_mean = value
python
def dbmax_mean(self, value=None): """ Corresponds to IDD Field `dbmax_mean` Mean of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax_mean`'.format(value)) self._dbmax_mean = value
[ "def", "dbmax_mean", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax_mean`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax_mean", "=", "value" ]
Corresponds to IDD Field `dbmax_mean` Mean of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_mean` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax_mean", "Mean", "of", "extreme", "annual", "maximum", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2890-L2910
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin_stddev
def dbmin_stddev(self, value=None): """ Corresponds to IDD Field `dbmin_stddev` Standard deviation of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin_stddev`'.format(value)) self._dbmin_stddev = value
python
def dbmin_stddev(self, value=None): """ Corresponds to IDD Field `dbmin_stddev` Standard deviation of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin_stddev`'.format(value)) self._dbmin_stddev = value
[ "def", "dbmin_stddev", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin_stddev`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin_stddev", "=", "value" ]
Corresponds to IDD Field `dbmin_stddev` Standard deviation of extreme annual minimum dry-bulb temperature Args: value (float): value for IDD Field `dbmin_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin_stddev", "Standard", "deviation", "of", "extreme", "annual", "minimum", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2923-L2943
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax_stddev
def dbmax_stddev(self, value=None): """ Corresponds to IDD Field `dbmax_stddev` Standard deviation of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax_stddev`'.format(value)) self._dbmax_stddev = value
python
def dbmax_stddev(self, value=None): """ Corresponds to IDD Field `dbmax_stddev` Standard deviation of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax_stddev`'.format(value)) self._dbmax_stddev = value
[ "def", "dbmax_stddev", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax_stddev`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax_stddev", "=", "value" ]
Corresponds to IDD Field `dbmax_stddev` Standard deviation of extreme annual maximum dry-bulb temperature Args: value (float): value for IDD Field `dbmax_stddev` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax_stddev", "Standard", "deviation", "of", "extreme", "annual", "maximum", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2956-L2976
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin05years
def dbmin05years(self, value=None): """ Corresponds to IDD Field `dbmin05years` 5-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin05years`'.format(value)) self._dbmin05years = value
python
def dbmin05years(self, value=None): """ Corresponds to IDD Field `dbmin05years` 5-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin05years`'.format(value)) self._dbmin05years = value
[ "def", "dbmin05years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin05years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin05years", "=", "value" ]
Corresponds to IDD Field `dbmin05years` 5-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin05years", "5", "-", "year", "return", "period", "values", "for", "minimum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L2989-L3009
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax05years
def dbmax05years(self, value=None): """ Corresponds to IDD Field `dbmax05years` 5-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax05years`'.format(value)) self._dbmax05years = value
python
def dbmax05years(self, value=None): """ Corresponds to IDD Field `dbmax05years` 5-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax05years`'.format(value)) self._dbmax05years = value
[ "def", "dbmax05years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax05years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax05years", "=", "value" ]
Corresponds to IDD Field `dbmax05years` 5-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax05years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax05years", "5", "-", "year", "return", "period", "values", "for", "maximum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3022-L3042
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin10years
def dbmin10years(self, value=None): """ Corresponds to IDD Field `dbmin10years` 10-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin10years`'.format(value)) self._dbmin10years = value
python
def dbmin10years(self, value=None): """ Corresponds to IDD Field `dbmin10years` 10-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin10years`'.format(value)) self._dbmin10years = value
[ "def", "dbmin10years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin10years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin10years", "=", "value" ]
Corresponds to IDD Field `dbmin10years` 10-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin10years", "10", "-", "year", "return", "period", "values", "for", "minimum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3055-L3075
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax10years
def dbmax10years(self, value=None): """ Corresponds to IDD Field `dbmax10years` 10-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax10years`'.format(value)) self._dbmax10years = value
python
def dbmax10years(self, value=None): """ Corresponds to IDD Field `dbmax10years` 10-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax10years`'.format(value)) self._dbmax10years = value
[ "def", "dbmax10years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax10years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax10years", "=", "value" ]
Corresponds to IDD Field `dbmax10years` 10-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax10years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax10years", "10", "-", "year", "return", "period", "values", "for", "maximum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3088-L3108
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin20years
def dbmin20years(self, value=None): """ Corresponds to IDD Field `dbmin20years` 20-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin20years`'.format(value)) self._dbmin20years = value
python
def dbmin20years(self, value=None): """ Corresponds to IDD Field `dbmin20years` 20-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin20years`'.format(value)) self._dbmin20years = value
[ "def", "dbmin20years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin20years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin20years", "=", "value" ]
Corresponds to IDD Field `dbmin20years` 20-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin20years", "20", "-", "year", "return", "period", "values", "for", "minimum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3121-L3141
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax20years
def dbmax20years(self, value=None): """ Corresponds to IDD Field `dbmax20years` 20-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax20years`'.format(value)) self._dbmax20years = value
python
def dbmax20years(self, value=None): """ Corresponds to IDD Field `dbmax20years` 20-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax20years`'.format(value)) self._dbmax20years = value
[ "def", "dbmax20years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax20years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax20years", "=", "value" ]
Corresponds to IDD Field `dbmax20years` 20-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax20years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax20years", "20", "-", "year", "return", "period", "values", "for", "maximum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3154-L3174
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmin50years
def dbmin50years(self, value=None): """ Corresponds to IDD Field `dbmin50years` 50-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin50years`'.format(value)) self._dbmin50years = value
python
def dbmin50years(self, value=None): """ Corresponds to IDD Field `dbmin50years` 50-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmin50years`'.format(value)) self._dbmin50years = value
[ "def", "dbmin50years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmin50years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmin50years", "=", "value" ]
Corresponds to IDD Field `dbmin50years` 50-year return period values for minimum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmin50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmin50years", "50", "-", "year", "return", "period", "values", "for", "minimum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3187-L3207
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.dbmax50years
def dbmax50years(self, value=None): """ Corresponds to IDD Field `dbmax50years` 50-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax50years`'.format(value)) self._dbmax50years = value
python
def dbmax50years(self, value=None): """ Corresponds to IDD Field `dbmax50years` 50-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError('value {} need to be of type float ' 'for field `dbmax50years`'.format(value)) self._dbmax50years = value
[ "def", "dbmax50years", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `dbmax50years`'", ".", "format", "(", "value", ")", ")", "self", ".", "_dbmax50years", "=", "value" ]
Corresponds to IDD Field `dbmax50years` 50-year return period values for maximum extreme dry-bulb temperature Args: value (float): value for IDD Field `dbmax50years` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "dbmax50years", "50", "-", "year", "return", "period", "values", "for", "maximum", "extreme", "dry", "-", "bulb", "temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3220-L3240
train
rbuffat/pyepw
pyepw/epw.py
DesignCondition.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.title_of_design_condition)) out.append(self._to_str(self.unkown_field)) out.append(self._to_str(self.design_stat_heating)) out.append(self._to_str(self.coldestmonth)) out.append(self._to_str(self.db996)) out.append(self._to_str(self.db990)) out.append(self._to_str(self.dp996)) out.append(self._to_str(self.hr_dp996)) out.append(self._to_str(self.db_dp996)) out.append(self._to_str(self.dp990)) out.append(self._to_str(self.hr_dp990)) out.append(self._to_str(self.db_dp990)) out.append(self._to_str(self.ws004c)) out.append(self._to_str(self.db_ws004c)) out.append(self._to_str(self.ws010c)) out.append(self._to_str(self.db_ws010c)) out.append(self._to_str(self.ws_db996)) out.append(self._to_str(self.wd_db996)) out.append(self._to_str(self.design_stat_cooling)) out.append(self._to_str(self.hottestmonth)) out.append(self._to_str(self.dbr)) out.append(self._to_str(self.db004)) out.append(self._to_str(self.wb_db004)) out.append(self._to_str(self.db010)) out.append(self._to_str(self.wb_db010)) out.append(self._to_str(self.db020)) out.append(self._to_str(self.wb_db020)) out.append(self._to_str(self.wb004)) out.append(self._to_str(self.db_wb004)) out.append(self._to_str(self.wb010)) out.append(self._to_str(self.db_wb010)) out.append(self._to_str(self.wb020)) out.append(self._to_str(self.db_wb020)) out.append(self._to_str(self.ws_db004)) out.append(self._to_str(self.wd_db004)) out.append(self._to_str(self.dp004)) out.append(self._to_str(self.hr_dp004)) out.append(self._to_str(self.db_dp004)) out.append(self._to_str(self.dp010)) out.append(self._to_str(self.hr_dp010)) out.append(self._to_str(self.db_dp010)) out.append(self._to_str(self.dp020)) out.append(self._to_str(self.hr_dp020)) out.append(self._to_str(self.db_dp020)) out.append(self._to_str(self.en004)) out.append(self._to_str(self.db_en004)) out.append(self._to_str(self.en010)) out.append(self._to_str(self.db_en010)) out.append(self._to_str(self.en020)) out.append(self._to_str(self.db_en020)) out.append(self._to_str(self.hrs_84_and_db12_8_or_20_6)) out.append(self._to_str(self.design_stat_extremes)) out.append(self._to_str(self.ws010)) out.append(self._to_str(self.ws025)) out.append(self._to_str(self.ws050)) out.append(self._to_str(self.wbmax)) out.append(self._to_str(self.dbmin_mean)) out.append(self._to_str(self.dbmax_mean)) out.append(self._to_str(self.dbmin_stddev)) out.append(self._to_str(self.dbmax_stddev)) out.append(self._to_str(self.dbmin05years)) out.append(self._to_str(self.dbmax05years)) out.append(self._to_str(self.dbmin10years)) out.append(self._to_str(self.dbmax10years)) out.append(self._to_str(self.dbmin20years)) out.append(self._to_str(self.dbmax20years)) out.append(self._to_str(self.dbmin50years)) out.append(self._to_str(self.dbmax50years)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.title_of_design_condition)) out.append(self._to_str(self.unkown_field)) out.append(self._to_str(self.design_stat_heating)) out.append(self._to_str(self.coldestmonth)) out.append(self._to_str(self.db996)) out.append(self._to_str(self.db990)) out.append(self._to_str(self.dp996)) out.append(self._to_str(self.hr_dp996)) out.append(self._to_str(self.db_dp996)) out.append(self._to_str(self.dp990)) out.append(self._to_str(self.hr_dp990)) out.append(self._to_str(self.db_dp990)) out.append(self._to_str(self.ws004c)) out.append(self._to_str(self.db_ws004c)) out.append(self._to_str(self.ws010c)) out.append(self._to_str(self.db_ws010c)) out.append(self._to_str(self.ws_db996)) out.append(self._to_str(self.wd_db996)) out.append(self._to_str(self.design_stat_cooling)) out.append(self._to_str(self.hottestmonth)) out.append(self._to_str(self.dbr)) out.append(self._to_str(self.db004)) out.append(self._to_str(self.wb_db004)) out.append(self._to_str(self.db010)) out.append(self._to_str(self.wb_db010)) out.append(self._to_str(self.db020)) out.append(self._to_str(self.wb_db020)) out.append(self._to_str(self.wb004)) out.append(self._to_str(self.db_wb004)) out.append(self._to_str(self.wb010)) out.append(self._to_str(self.db_wb010)) out.append(self._to_str(self.wb020)) out.append(self._to_str(self.db_wb020)) out.append(self._to_str(self.ws_db004)) out.append(self._to_str(self.wd_db004)) out.append(self._to_str(self.dp004)) out.append(self._to_str(self.hr_dp004)) out.append(self._to_str(self.db_dp004)) out.append(self._to_str(self.dp010)) out.append(self._to_str(self.hr_dp010)) out.append(self._to_str(self.db_dp010)) out.append(self._to_str(self.dp020)) out.append(self._to_str(self.hr_dp020)) out.append(self._to_str(self.db_dp020)) out.append(self._to_str(self.en004)) out.append(self._to_str(self.db_en004)) out.append(self._to_str(self.en010)) out.append(self._to_str(self.db_en010)) out.append(self._to_str(self.en020)) out.append(self._to_str(self.db_en020)) out.append(self._to_str(self.hrs_84_and_db12_8_or_20_6)) out.append(self._to_str(self.design_stat_extremes)) out.append(self._to_str(self.ws010)) out.append(self._to_str(self.ws025)) out.append(self._to_str(self.ws050)) out.append(self._to_str(self.wbmax)) out.append(self._to_str(self.dbmin_mean)) out.append(self._to_str(self.dbmax_mean)) out.append(self._to_str(self.dbmin_stddev)) out.append(self._to_str(self.dbmax_stddev)) out.append(self._to_str(self.dbmin05years)) out.append(self._to_str(self.dbmax05years)) out.append(self._to_str(self.dbmin10years)) out.append(self._to_str(self.dbmax10years)) out.append(self._to_str(self.dbmin20years)) out.append(self._to_str(self.dbmax20years)) out.append(self._to_str(self.dbmin50years)) out.append(self._to_str(self.dbmax50years)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "title_of_design_condition", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "unkown_field", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "design_stat_heating", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "coldestmonth", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db990", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dp996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hr_dp996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_dp996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dp990", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hr_dp990", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_dp990", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws004c", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_ws004c", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws010c", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_ws010c", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws_db996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wd_db996", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "design_stat_cooling", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hottestmonth", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbr", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb_db004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb_db010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb_db020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_wb004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_wb010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wb020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_wb020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws_db004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wd_db004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dp004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hr_dp004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_dp004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dp010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hr_dp010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_dp010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dp020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hr_dp020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_dp020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "en004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_en004", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "en010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_en010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "en020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "db_en020", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "hrs_84_and_db12_8_or_20_6", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "design_stat_extremes", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws010", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws025", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ws050", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "wbmax", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin_mean", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax_mean", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin_stddev", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax_stddev", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin05years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax05years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin10years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax10years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin20years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax20years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmin50years", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "dbmax50years", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3255-L3339
train
rbuffat/pyepw
pyepw/epw.py
DesignConditions.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = DesignCondition() obj.read(vals[i:i + obj.field_count]) self.add_design_condition(obj) i += obj.field_count
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = DesignCondition() obj.read(vals[i:i + obj.field_count]) self.add_design_condition(obj) i += obj.field_count
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "DesignCondition", "(", ")", "obj", ".", "read", "(", "vals", "[", "i", ":", "i", "+", "obj", ".", "field_count", "]", ")", "self", ".", "add_design_condition", "(", "obj", ")", "i", "+=", "obj", ".", "field_count" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3355-L3369
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.typical_or_extreme_period_name = None else: self.typical_or_extreme_period_name = vals[i] i += 1 if len(vals[i]) == 0: self.typical_or_extreme_period_type = None else: self.typical_or_extreme_period_type = vals[i] i += 1 if len(vals[i]) == 0: self.period_start_day = None else: self.period_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.period_end_day = None else: self.period_end_day = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.typical_or_extreme_period_name = None else: self.typical_or_extreme_period_name = vals[i] i += 1 if len(vals[i]) == 0: self.typical_or_extreme_period_type = None else: self.typical_or_extreme_period_type = vals[i] i += 1 if len(vals[i]) == 0: self.period_start_day = None else: self.period_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.period_end_day = None else: self.period_end_day = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "typical_or_extreme_period_name", "=", "None", "else", ":", "self", ".", "typical_or_extreme_period_name", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "typical_or_extreme_period_type", "=", "None", "else", ":", "self", ".", "typical_or_extreme_period_type", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "period_start_day", "=", "None", "else", ":", "self", ".", "period_start_day", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "period_end_day", "=", "None", "else", ":", "self", ".", "period_end_day", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3441-L3468
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.typical_or_extreme_period_name
def typical_or_extreme_period_name(self, value=None): """Corresponds to IDD Field `typical_or_extreme_period_name` Args: value (str): value for IDD Field `typical_or_extreme_period_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `typical_or_extreme_period_name`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `typical_or_extreme_period_name`') self._typical_or_extreme_period_name = value
python
def typical_or_extreme_period_name(self, value=None): """Corresponds to IDD Field `typical_or_extreme_period_name` Args: value (str): value for IDD Field `typical_or_extreme_period_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `typical_or_extreme_period_name`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `typical_or_extreme_period_name`') self._typical_or_extreme_period_name = value
[ "def", "typical_or_extreme_period_name", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `typical_or_extreme_period_name`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `typical_or_extreme_period_name`'", ")", "self", ".", "_typical_or_extreme_period_name", "=", "value" ]
Corresponds to IDD Field `typical_or_extreme_period_name` Args: value (str): value for IDD Field `typical_or_extreme_period_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "typical_or_extreme_period_name" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3481-L3504
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.typical_or_extreme_period_type
def typical_or_extreme_period_type(self, value=None): """Corresponds to IDD Field `typical_or_extreme_period_type` Args: value (str): value for IDD Field `typical_or_extreme_period_type` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `typical_or_extreme_period_type`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `typical_or_extreme_period_type`') self._typical_or_extreme_period_type = value
python
def typical_or_extreme_period_type(self, value=None): """Corresponds to IDD Field `typical_or_extreme_period_type` Args: value (str): value for IDD Field `typical_or_extreme_period_type` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `typical_or_extreme_period_type`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `typical_or_extreme_period_type`') self._typical_or_extreme_period_type = value
[ "def", "typical_or_extreme_period_type", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `typical_or_extreme_period_type`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `typical_or_extreme_period_type`'", ")", "self", ".", "_typical_or_extreme_period_type", "=", "value" ]
Corresponds to IDD Field `typical_or_extreme_period_type` Args: value (str): value for IDD Field `typical_or_extreme_period_type` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "typical_or_extreme_period_type" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3517-L3540
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.period_start_day
def period_start_day(self, value=None): """Corresponds to IDD Field `period_start_day` Args: value (str): value for IDD Field `period_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `period_start_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `period_start_day`') self._period_start_day = value
python
def period_start_day(self, value=None): """Corresponds to IDD Field `period_start_day` Args: value (str): value for IDD Field `period_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `period_start_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `period_start_day`') self._period_start_day = value
[ "def", "period_start_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `period_start_day`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `period_start_day`'", ")", "self", ".", "_period_start_day", "=", "value" ]
Corresponds to IDD Field `period_start_day` Args: value (str): value for IDD Field `period_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "period_start_day" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3553-L3575
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.period_end_day
def period_end_day(self, value=None): """Corresponds to IDD Field `period_end_day` Args: value (str): value for IDD Field `period_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `period_end_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `period_end_day`') self._period_end_day = value
python
def period_end_day(self, value=None): """Corresponds to IDD Field `period_end_day` Args: value (str): value for IDD Field `period_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `period_end_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `period_end_day`') self._period_end_day = value
[ "def", "period_end_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `period_end_day`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `period_end_day`'", ")", "self", ".", "_period_end_day", "=", "value" ]
Corresponds to IDD Field `period_end_day` Args: value (str): value for IDD Field `period_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "period_end_day" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3588-L3610
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriod.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.typical_or_extreme_period_name)) out.append(self._to_str(self.typical_or_extreme_period_type)) out.append(self._to_str(self.period_start_day)) out.append(self._to_str(self.period_end_day)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.typical_or_extreme_period_name)) out.append(self._to_str(self.typical_or_extreme_period_type)) out.append(self._to_str(self.period_start_day)) out.append(self._to_str(self.period_end_day)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "typical_or_extreme_period_name", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "typical_or_extreme_period_type", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "period_start_day", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "period_end_day", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3625-L3645
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriods.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = TypicalOrExtremePeriod() obj.read(vals[i:i + obj.field_count]) self.add_typical_or_extreme_period(obj) i += obj.field_count
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = TypicalOrExtremePeriod() obj.read(vals[i:i + obj.field_count]) self.add_typical_or_extreme_period(obj) i += obj.field_count
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "TypicalOrExtremePeriod", "(", ")", "obj", ".", "read", "(", "vals", "[", "i", ":", "i", "+", "obj", ".", "field_count", "]", ")", "self", ".", "add_typical_or_extreme_period", "(", "obj", ")", "i", "+=", "obj", ".", "field_count" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3662-L3676
train
rbuffat/pyepw
pyepw/epw.py
TypicalOrExtremePeriods.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(str(len(self.typical_or_extreme_periods))) for obj in self.typical_or_extreme_periods: out.append(obj.export(top=False)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(str(len(self.typical_or_extreme_periods))) for obj in self.typical_or_extreme_periods: out.append(obj.export(top=False)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "str", "(", "len", "(", "self", ".", "typical_or_extreme_periods", ")", ")", ")", "for", "obj", "in", "self", ".", "typical_or_extreme_periods", ":", "out", ".", "append", "(", "obj", ".", "export", "(", "top", "=", "False", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3710-L3729
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.ground_temperature_depth = None else: self.ground_temperature_depth = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_conductivity = None else: self.depth_soil_conductivity = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_density = None else: self.depth_soil_density = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_specific_heat = None else: self.depth_soil_specific_heat = vals[i] i += 1 if len(vals[i]) == 0: self.depth_january_average_ground_temperature = None else: self.depth_january_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_february_average_ground_temperature = None else: self.depth_february_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_march_average_ground_temperature = None else: self.depth_march_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_april_average_ground_temperature = None else: self.depth_april_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_may_average_ground_temperature = None else: self.depth_may_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_june_average_ground_temperature = None else: self.depth_june_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_july_average_ground_temperature = None else: self.depth_july_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_august_average_ground_temperature = None else: self.depth_august_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_september_average_ground_temperature = None else: self.depth_september_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_october_average_ground_temperature = None else: self.depth_october_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_november_average_ground_temperature = None else: self.depth_november_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_december_average_ground_temperature = None else: self.depth_december_average_ground_temperature = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.ground_temperature_depth = None else: self.ground_temperature_depth = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_conductivity = None else: self.depth_soil_conductivity = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_density = None else: self.depth_soil_density = vals[i] i += 1 if len(vals[i]) == 0: self.depth_soil_specific_heat = None else: self.depth_soil_specific_heat = vals[i] i += 1 if len(vals[i]) == 0: self.depth_january_average_ground_temperature = None else: self.depth_january_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_february_average_ground_temperature = None else: self.depth_february_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_march_average_ground_temperature = None else: self.depth_march_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_april_average_ground_temperature = None else: self.depth_april_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_may_average_ground_temperature = None else: self.depth_may_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_june_average_ground_temperature = None else: self.depth_june_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_july_average_ground_temperature = None else: self.depth_july_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_august_average_ground_temperature = None else: self.depth_august_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_september_average_ground_temperature = None else: self.depth_september_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_october_average_ground_temperature = None else: self.depth_october_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_november_average_ground_temperature = None else: self.depth_november_average_ground_temperature = vals[i] i += 1 if len(vals[i]) == 0: self.depth_december_average_ground_temperature = None else: self.depth_december_average_ground_temperature = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "ground_temperature_depth", "=", "None", "else", ":", "self", ".", "ground_temperature_depth", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_soil_conductivity", "=", "None", "else", ":", "self", ".", "depth_soil_conductivity", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_soil_density", "=", "None", "else", ":", "self", ".", "depth_soil_density", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_soil_specific_heat", "=", "None", "else", ":", "self", ".", "depth_soil_specific_heat", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_january_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_january_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_february_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_february_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_march_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_march_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_april_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_april_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_may_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_may_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_june_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_june_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_july_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_july_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_august_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_august_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_september_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_september_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_october_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_october_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_november_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_november_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "depth_december_average_ground_temperature", "=", "None", "else", ":", "self", ".", "depth_december_average_ground_temperature", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3760-L3847
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.ground_temperature_depth
def ground_temperature_depth(self, value=None): """Corresponds to IDD Field `ground_temperature_depth` Args: value (float): value for IDD Field `ground_temperature_depth` Unit: m if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `ground_temperature_depth`'.format(value)) self._ground_temperature_depth = value
python
def ground_temperature_depth(self, value=None): """Corresponds to IDD Field `ground_temperature_depth` Args: value (float): value for IDD Field `ground_temperature_depth` Unit: m if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `ground_temperature_depth`'.format(value)) self._ground_temperature_depth = value
[ "def", "ground_temperature_depth", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `ground_temperature_depth`'", ".", "format", "(", "value", ")", ")", "self", ".", "_ground_temperature_depth", "=", "value" ]
Corresponds to IDD Field `ground_temperature_depth` Args: value (float): value for IDD Field `ground_temperature_depth` Unit: m if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "ground_temperature_depth" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3860-L3881
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_soil_conductivity
def depth_soil_conductivity(self, value=None): """Corresponds to IDD Field `depth_soil_conductivity` Args: value (float): value for IDD Field `depth_soil_conductivity` Unit: W/m-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_conductivity`'.format(value)) self._depth_soil_conductivity = value
python
def depth_soil_conductivity(self, value=None): """Corresponds to IDD Field `depth_soil_conductivity` Args: value (float): value for IDD Field `depth_soil_conductivity` Unit: W/m-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_conductivity`'.format(value)) self._depth_soil_conductivity = value
[ "def", "depth_soil_conductivity", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_soil_conductivity`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_soil_conductivity", "=", "value" ]
Corresponds to IDD Field `depth_soil_conductivity` Args: value (float): value for IDD Field `depth_soil_conductivity` Unit: W/m-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_soil_conductivity" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3894-L3915
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_soil_density
def depth_soil_density(self, value=None): """Corresponds to IDD Field `depth_soil_density` Args: value (float): value for IDD Field `depth_soil_density` Unit: kg/m3 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_density`'.format(value)) self._depth_soil_density = value
python
def depth_soil_density(self, value=None): """Corresponds to IDD Field `depth_soil_density` Args: value (float): value for IDD Field `depth_soil_density` Unit: kg/m3 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_density`'.format(value)) self._depth_soil_density = value
[ "def", "depth_soil_density", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_soil_density`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_soil_density", "=", "value" ]
Corresponds to IDD Field `depth_soil_density` Args: value (float): value for IDD Field `depth_soil_density` Unit: kg/m3 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_soil_density" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3928-L3949
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_soil_specific_heat
def depth_soil_specific_heat(self, value=None): """Corresponds to IDD Field `depth_soil_specific_heat` Args: value (float): value for IDD Field `depth_soil_specific_heat` Unit: J/kg-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_specific_heat`'.format(value)) self._depth_soil_specific_heat = value
python
def depth_soil_specific_heat(self, value=None): """Corresponds to IDD Field `depth_soil_specific_heat` Args: value (float): value for IDD Field `depth_soil_specific_heat` Unit: J/kg-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_soil_specific_heat`'.format(value)) self._depth_soil_specific_heat = value
[ "def", "depth_soil_specific_heat", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_soil_specific_heat`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_soil_specific_heat", "=", "value" ]
Corresponds to IDD Field `depth_soil_specific_heat` Args: value (float): value for IDD Field `depth_soil_specific_heat` Unit: J/kg-K, if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_soil_specific_heat" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3962-L3983
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_january_average_ground_temperature
def depth_january_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_january_average_ground_temperature` Args: value (float): value for IDD Field `depth_january_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_january_average_ground_temperature`'.format(value)) self._depth_january_average_ground_temperature = value
python
def depth_january_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_january_average_ground_temperature` Args: value (float): value for IDD Field `depth_january_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_january_average_ground_temperature`'.format(value)) self._depth_january_average_ground_temperature = value
[ "def", "depth_january_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_january_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_january_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_january_average_ground_temperature` Args: value (float): value for IDD Field `depth_january_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_january_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L3996-L4017
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_february_average_ground_temperature
def depth_february_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_february_average_ground_temperature` Args: value (float): value for IDD Field `depth_february_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_february_average_ground_temperature`'.format(value)) self._depth_february_average_ground_temperature = value
python
def depth_february_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_february_average_ground_temperature` Args: value (float): value for IDD Field `depth_february_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_february_average_ground_temperature`'.format(value)) self._depth_february_average_ground_temperature = value
[ "def", "depth_february_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_february_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_february_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_february_average_ground_temperature` Args: value (float): value for IDD Field `depth_february_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_february_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4030-L4051
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_march_average_ground_temperature
def depth_march_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_march_average_ground_temperature` Args: value (float): value for IDD Field `depth_march_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_march_average_ground_temperature`'.format(value)) self._depth_march_average_ground_temperature = value
python
def depth_march_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_march_average_ground_temperature` Args: value (float): value for IDD Field `depth_march_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_march_average_ground_temperature`'.format(value)) self._depth_march_average_ground_temperature = value
[ "def", "depth_march_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_march_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_march_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_march_average_ground_temperature` Args: value (float): value for IDD Field `depth_march_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_march_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4064-L4085
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_april_average_ground_temperature
def depth_april_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_april_average_ground_temperature` Args: value (float): value for IDD Field `depth_april_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_april_average_ground_temperature`'.format(value)) self._depth_april_average_ground_temperature = value
python
def depth_april_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_april_average_ground_temperature` Args: value (float): value for IDD Field `depth_april_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_april_average_ground_temperature`'.format(value)) self._depth_april_average_ground_temperature = value
[ "def", "depth_april_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_april_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_april_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_april_average_ground_temperature` Args: value (float): value for IDD Field `depth_april_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_april_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4098-L4119
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_may_average_ground_temperature
def depth_may_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_may_average_ground_temperature` Args: value (float): value for IDD Field `depth_may_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_may_average_ground_temperature`'.format(value)) self._depth_may_average_ground_temperature = value
python
def depth_may_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_may_average_ground_temperature` Args: value (float): value for IDD Field `depth_may_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_may_average_ground_temperature`'.format(value)) self._depth_may_average_ground_temperature = value
[ "def", "depth_may_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_may_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_may_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_may_average_ground_temperature` Args: value (float): value for IDD Field `depth_may_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_may_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4132-L4153
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_june_average_ground_temperature
def depth_june_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_june_average_ground_temperature` Args: value (float): value for IDD Field `depth_june_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_june_average_ground_temperature`'.format(value)) self._depth_june_average_ground_temperature = value
python
def depth_june_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_june_average_ground_temperature` Args: value (float): value for IDD Field `depth_june_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_june_average_ground_temperature`'.format(value)) self._depth_june_average_ground_temperature = value
[ "def", "depth_june_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_june_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_june_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_june_average_ground_temperature` Args: value (float): value for IDD Field `depth_june_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_june_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4166-L4187
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_july_average_ground_temperature
def depth_july_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_july_average_ground_temperature` Args: value (float): value for IDD Field `depth_july_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_july_average_ground_temperature`'.format(value)) self._depth_july_average_ground_temperature = value
python
def depth_july_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_july_average_ground_temperature` Args: value (float): value for IDD Field `depth_july_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_july_average_ground_temperature`'.format(value)) self._depth_july_average_ground_temperature = value
[ "def", "depth_july_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_july_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_july_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_july_average_ground_temperature` Args: value (float): value for IDD Field `depth_july_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_july_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4200-L4221
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_august_average_ground_temperature
def depth_august_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_august_average_ground_temperature` Args: value (float): value for IDD Field `depth_august_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_august_average_ground_temperature`'.format(value)) self._depth_august_average_ground_temperature = value
python
def depth_august_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_august_average_ground_temperature` Args: value (float): value for IDD Field `depth_august_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_august_average_ground_temperature`'.format(value)) self._depth_august_average_ground_temperature = value
[ "def", "depth_august_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_august_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_august_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_august_average_ground_temperature` Args: value (float): value for IDD Field `depth_august_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_august_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4234-L4255
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_september_average_ground_temperature
def depth_september_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_september_average_ground_temperature` Args: value (float): value for IDD Field `depth_september_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_september_average_ground_temperature`'.format(value)) self._depth_september_average_ground_temperature = value
python
def depth_september_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_september_average_ground_temperature` Args: value (float): value for IDD Field `depth_september_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_september_average_ground_temperature`'.format(value)) self._depth_september_average_ground_temperature = value
[ "def", "depth_september_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_september_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_september_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_september_average_ground_temperature` Args: value (float): value for IDD Field `depth_september_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_september_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4268-L4290
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_october_average_ground_temperature
def depth_october_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_october_average_ground_temperature` Args: value (float): value for IDD Field `depth_october_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_october_average_ground_temperature`'.format(value)) self._depth_october_average_ground_temperature = value
python
def depth_october_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_october_average_ground_temperature` Args: value (float): value for IDD Field `depth_october_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_october_average_ground_temperature`'.format(value)) self._depth_october_average_ground_temperature = value
[ "def", "depth_october_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_october_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_october_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_october_average_ground_temperature` Args: value (float): value for IDD Field `depth_october_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_october_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4303-L4324
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_november_average_ground_temperature
def depth_november_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_november_average_ground_temperature` Args: value (float): value for IDD Field `depth_november_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_november_average_ground_temperature`'.format(value)) self._depth_november_average_ground_temperature = value
python
def depth_november_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_november_average_ground_temperature` Args: value (float): value for IDD Field `depth_november_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_november_average_ground_temperature`'.format(value)) self._depth_november_average_ground_temperature = value
[ "def", "depth_november_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_november_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_november_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_november_average_ground_temperature` Args: value (float): value for IDD Field `depth_november_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_november_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4337-L4358
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.depth_december_average_ground_temperature
def depth_december_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_december_average_ground_temperature` Args: value (float): value for IDD Field `depth_december_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_december_average_ground_temperature`'.format(value)) self._depth_december_average_ground_temperature = value
python
def depth_december_average_ground_temperature(self, value=None): """Corresponds to IDD Field `depth_december_average_ground_temperature` Args: value (float): value for IDD Field `depth_december_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = float(value) except ValueError: raise ValueError( 'value {} need to be of type float ' 'for field `depth_december_average_ground_temperature`'.format(value)) self._depth_december_average_ground_temperature = value
[ "def", "depth_december_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float '", "'for field `depth_december_average_ground_temperature`'", ".", "format", "(", "value", ")", ")", "self", ".", "_depth_december_average_ground_temperature", "=", "value" ]
Corresponds to IDD Field `depth_december_average_ground_temperature` Args: value (float): value for IDD Field `depth_december_average_ground_temperature` Unit: C if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "depth_december_average_ground_temperature" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4371-L4392
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperature.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.ground_temperature_depth)) out.append(self._to_str(self.depth_soil_conductivity)) out.append(self._to_str(self.depth_soil_density)) out.append(self._to_str(self.depth_soil_specific_heat)) out.append(self._to_str(self.depth_january_average_ground_temperature)) out.append( self._to_str( self.depth_february_average_ground_temperature)) out.append(self._to_str(self.depth_march_average_ground_temperature)) out.append(self._to_str(self.depth_april_average_ground_temperature)) out.append(self._to_str(self.depth_may_average_ground_temperature)) out.append(self._to_str(self.depth_june_average_ground_temperature)) out.append(self._to_str(self.depth_july_average_ground_temperature)) out.append(self._to_str(self.depth_august_average_ground_temperature)) out.append( self._to_str( self.depth_september_average_ground_temperature)) out.append(self._to_str(self.depth_october_average_ground_temperature)) out.append( self._to_str( self.depth_november_average_ground_temperature)) out.append( self._to_str( self.depth_december_average_ground_temperature)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.ground_temperature_depth)) out.append(self._to_str(self.depth_soil_conductivity)) out.append(self._to_str(self.depth_soil_density)) out.append(self._to_str(self.depth_soil_specific_heat)) out.append(self._to_str(self.depth_january_average_ground_temperature)) out.append( self._to_str( self.depth_february_average_ground_temperature)) out.append(self._to_str(self.depth_march_average_ground_temperature)) out.append(self._to_str(self.depth_april_average_ground_temperature)) out.append(self._to_str(self.depth_may_average_ground_temperature)) out.append(self._to_str(self.depth_june_average_ground_temperature)) out.append(self._to_str(self.depth_july_average_ground_temperature)) out.append(self._to_str(self.depth_august_average_ground_temperature)) out.append( self._to_str( self.depth_september_average_ground_temperature)) out.append(self._to_str(self.depth_october_average_ground_temperature)) out.append( self._to_str( self.depth_november_average_ground_temperature)) out.append( self._to_str( self.depth_december_average_ground_temperature)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ground_temperature_depth", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_soil_conductivity", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_soil_density", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_soil_specific_heat", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_january_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_february_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_march_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_april_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_may_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_june_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_july_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_august_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_september_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_october_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_november_average_ground_temperature", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "depth_december_average_ground_temperature", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4407-L4447
train
rbuffat/pyepw
pyepw/epw.py
GroundTemperatures.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = GroundTemperature() obj.read(vals[i:i + obj.field_count]) self.add_ground_temperature(obj) i += obj.field_count
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 count = int(vals[i]) i += 1 for _ in range(count): obj = GroundTemperature() obj.read(vals[i:i + obj.field_count]) self.add_ground_temperature(obj) i += obj.field_count
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "GroundTemperature", "(", ")", "obj", ".", "read", "(", "vals", "[", "i", ":", "i", "+", "obj", ".", "field_count", "]", ")", "self", ".", "add_ground_temperature", "(", "obj", ")", "i", "+=", "obj", ".", "field_count" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4463-L4477
train
rbuffat/pyepw
pyepw/epw.py
Holiday.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.holiday_name = None else: self.holiday_name = vals[i] i += 1 if len(vals[i]) == 0: self.holiday_day = None else: self.holiday_day = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.holiday_name = None else: self.holiday_name = vals[i] i += 1 if len(vals[i]) == 0: self.holiday_day = None else: self.holiday_day = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "holiday_name", "=", "None", "else", ":", "self", ".", "holiday_name", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "holiday_day", "=", "None", "else", ":", "self", ".", "holiday_day", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4547-L4564
train
rbuffat/pyepw
pyepw/epw.py
Holiday.holiday_name
def holiday_name(self, value=None): """Corresponds to IDD Field `holiday_name` Args: value (str): value for IDD Field `holiday_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `holiday_name`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `holiday_name`') self._holiday_name = value
python
def holiday_name(self, value=None): """Corresponds to IDD Field `holiday_name` Args: value (str): value for IDD Field `holiday_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `holiday_name`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `holiday_name`') self._holiday_name = value
[ "def", "holiday_name", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `holiday_name`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `holiday_name`'", ")", "self", ".", "_holiday_name", "=", "value" ]
Corresponds to IDD Field `holiday_name` Args: value (str): value for IDD Field `holiday_name` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "holiday_name" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4577-L4599
train
rbuffat/pyepw
pyepw/epw.py
Holiday.holiday_day
def holiday_day(self, value=None): """Corresponds to IDD Field `holiday_day` Args: value (str): value for IDD Field `holiday_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `holiday_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `holiday_day`') self._holiday_day = value
python
def holiday_day(self, value=None): """Corresponds to IDD Field `holiday_day` Args: value (str): value for IDD Field `holiday_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `holiday_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `holiday_day`') self._holiday_day = value
[ "def", "holiday_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `holiday_day`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `holiday_day`'", ")", "self", ".", "_holiday_day", "=", "value" ]
Corresponds to IDD Field `holiday_day` Args: value (str): value for IDD Field `holiday_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "holiday_day" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4612-L4634
train
rbuffat/pyepw
pyepw/epw.py
Holiday.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.holiday_name)) out.append(self._to_str(self.holiday_day)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.holiday_name)) out.append(self._to_str(self.holiday_day)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "holiday_name", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "holiday_day", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4649-L4667
train
rbuffat/pyepw
pyepw/epw.py
HolidaysOrDaylightSavings.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.leapyear_observed = None else: self.leapyear_observed = vals[i] i += 1 if len(vals[i]) == 0: self.daylight_saving_start_day = None else: self.daylight_saving_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.daylight_saving_end_day = None else: self.daylight_saving_end_day = vals[i] i += 1 count = int(vals[i]) i += 1 for _ in range(count): obj = Holiday() obj.read(vals[i:i + obj.field_count]) self.add_holiday(obj) i += obj.field_count
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.leapyear_observed = None else: self.leapyear_observed = vals[i] i += 1 if len(vals[i]) == 0: self.daylight_saving_start_day = None else: self.daylight_saving_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.daylight_saving_end_day = None else: self.daylight_saving_end_day = vals[i] i += 1 count = int(vals[i]) i += 1 for _ in range(count): obj = Holiday() obj.read(vals[i:i + obj.field_count]) self.add_holiday(obj) i += obj.field_count
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "leapyear_observed", "=", "None", "else", ":", "self", ".", "leapyear_observed", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "daylight_saving_start_day", "=", "None", "else", ":", "self", ".", "daylight_saving_start_day", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "daylight_saving_end_day", "=", "None", "else", ":", "self", ".", "daylight_saving_end_day", "=", "vals", "[", "i", "]", "i", "+=", "1", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "Holiday", "(", ")", "obj", ".", "read", "(", "vals", "[", "i", ":", "i", "+", "obj", ".", "field_count", "]", ")", "self", ".", "add_holiday", "(", "obj", ")", "i", "+=", "obj", ".", "field_count" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4687-L4716
train
rbuffat/pyepw
pyepw/epw.py
HolidaysOrDaylightSavings.leapyear_observed
def leapyear_observed(self, value=None): """Corresponds to IDD Field `leapyear_observed` Yes if Leap Year will be observed for this file No if Leap Year days (29 Feb) should be ignored in this file. Args: value (str): value for IDD Field `leapyear_observed` Accepted values are: - Yes - No if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `leapyear_observed`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `leapyear_observed`') vals = set() vals.add("Yes") vals.add("No") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `leapyear_observed`'.format(value)) self._leapyear_observed = value
python
def leapyear_observed(self, value=None): """Corresponds to IDD Field `leapyear_observed` Yes if Leap Year will be observed for this file No if Leap Year days (29 Feb) should be ignored in this file. Args: value (str): value for IDD Field `leapyear_observed` Accepted values are: - Yes - No if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `leapyear_observed`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `leapyear_observed`') vals = set() vals.add("Yes") vals.add("No") if value not in vals: raise ValueError('value {} is not an accepted value for ' 'field `leapyear_observed`'.format(value)) self._leapyear_observed = value
[ "def", "leapyear_observed", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `leapyear_observed`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `leapyear_observed`'", ")", "vals", "=", "set", "(", ")", "vals", ".", "add", "(", "\"Yes\"", ")", "vals", ".", "add", "(", "\"No\"", ")", "if", "value", "not", "in", "vals", ":", "raise", "ValueError", "(", "'value {} is not an accepted value for '", "'field `leapyear_observed`'", ".", "format", "(", "value", ")", ")", "self", ".", "_leapyear_observed", "=", "value" ]
Corresponds to IDD Field `leapyear_observed` Yes if Leap Year will be observed for this file No if Leap Year days (29 Feb) should be ignored in this file. Args: value (str): value for IDD Field `leapyear_observed` Accepted values are: - Yes - No if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "leapyear_observed", "Yes", "if", "Leap", "Year", "will", "be", "observed", "for", "this", "file", "No", "if", "Leap", "Year", "days", "(", "29", "Feb", ")", "should", "be", "ignored", "in", "this", "file", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4729-L4762
train
rbuffat/pyepw
pyepw/epw.py
HolidaysOrDaylightSavings.daylight_saving_start_day
def daylight_saving_start_day(self, value=None): """Corresponds to IDD Field `daylight_saving_start_day` Args: value (str): value for IDD Field `daylight_saving_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `daylight_saving_start_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `daylight_saving_start_day`') self._daylight_saving_start_day = value
python
def daylight_saving_start_day(self, value=None): """Corresponds to IDD Field `daylight_saving_start_day` Args: value (str): value for IDD Field `daylight_saving_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `daylight_saving_start_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `daylight_saving_start_day`') self._daylight_saving_start_day = value
[ "def", "daylight_saving_start_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `daylight_saving_start_day`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `daylight_saving_start_day`'", ")", "self", ".", "_daylight_saving_start_day", "=", "value" ]
Corresponds to IDD Field `daylight_saving_start_day` Args: value (str): value for IDD Field `daylight_saving_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "daylight_saving_start_day" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4775-L4798
train
rbuffat/pyepw
pyepw/epw.py
HolidaysOrDaylightSavings.daylight_saving_end_day
def daylight_saving_end_day(self, value=None): """Corresponds to IDD Field `daylight_saving_end_day` Args: value (str): value for IDD Field `daylight_saving_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `daylight_saving_end_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `daylight_saving_end_day`') self._daylight_saving_end_day = value
python
def daylight_saving_end_day(self, value=None): """Corresponds to IDD Field `daylight_saving_end_day` Args: value (str): value for IDD Field `daylight_saving_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError( 'value {} need to be of type str ' 'for field `daylight_saving_end_day`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `daylight_saving_end_day`') self._daylight_saving_end_day = value
[ "def", "daylight_saving_end_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `daylight_saving_end_day`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `daylight_saving_end_day`'", ")", "self", ".", "_daylight_saving_end_day", "=", "value" ]
Corresponds to IDD Field `daylight_saving_end_day` Args: value (str): value for IDD Field `daylight_saving_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "daylight_saving_end_day" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4811-L4834
train
rbuffat/pyepw
pyepw/epw.py
HolidaysOrDaylightSavings.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.leapyear_observed)) out.append(self._to_str(self.daylight_saving_start_day)) out.append(self._to_str(self.daylight_saving_end_day)) out.append(str(len(self.holidays))) for obj in self.holidays: out.append(obj.export(top=False)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.leapyear_observed)) out.append(self._to_str(self.daylight_saving_start_day)) out.append(self._to_str(self.daylight_saving_end_day)) out.append(str(len(self.holidays))) for obj in self.holidays: out.append(obj.export(top=False)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "leapyear_observed", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "daylight_saving_start_day", ")", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "daylight_saving_end_day", ")", ")", "out", ".", "append", "(", "str", "(", "len", "(", "self", ".", "holidays", ")", ")", ")", "for", "obj", "in", "self", ".", "holidays", ":", "out", ".", "append", "(", "obj", ".", "export", "(", "top", "=", "False", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4868-L4890
train
rbuffat/pyepw
pyepw/epw.py
Comments1.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.comments_1 = None else: self.comments_1 = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.comments_1 = None else: self.comments_1 = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "comments_1", "=", "None", "else", ":", "self", ".", "comments_1", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4906-L4918
train
rbuffat/pyepw
pyepw/epw.py
Comments1.comments_1
def comments_1(self, value=None): """Corresponds to IDD Field `comments_1` Args: value (str): value for IDD Field `comments_1` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `comments_1`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `comments_1`') self._comments_1 = value
python
def comments_1(self, value=None): """Corresponds to IDD Field `comments_1` Args: value (str): value for IDD Field `comments_1` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `comments_1`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `comments_1`') self._comments_1 = value
[ "def", "comments_1", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `comments_1`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `comments_1`'", ")", "self", ".", "_comments_1", "=", "value" ]
Corresponds to IDD Field `comments_1` Args: value (str): value for IDD Field `comments_1` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "comments_1" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4931-L4953
train
rbuffat/pyepw
pyepw/epw.py
Comments2.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.comments_2 = None else: self.comments_2 = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.comments_2 = None else: self.comments_2 = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "comments_2", "=", "None", "else", ":", "self", ".", "comments_2", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5001-L5013
train
rbuffat/pyepw
pyepw/epw.py
Comments2.comments_2
def comments_2(self, value=None): """Corresponds to IDD Field `comments_2` Args: value (str): value for IDD Field `comments_2` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `comments_2`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `comments_2`') self._comments_2 = value
python
def comments_2(self, value=None): """Corresponds to IDD Field `comments_2` Args: value (str): value for IDD Field `comments_2` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = str(value) except ValueError: raise ValueError('value {} need to be of type str ' 'for field `comments_2`'.format(value)) if ',' in value: raise ValueError('value should not contain a comma ' 'for field `comments_2`') self._comments_2 = value
[ "def", "comments_2", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type str '", "'for field `comments_2`'", ".", "format", "(", "value", ")", ")", "if", "','", "in", "value", ":", "raise", "ValueError", "(", "'value should not contain a comma '", "'for field `comments_2`'", ")", "self", ".", "_comments_2", "=", "value" ]
Corresponds to IDD Field `comments_2` Args: value (str): value for IDD Field `comments_2` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "comments_2" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5026-L5048
train
rbuffat/pyepw
pyepw/epw.py
Comments2.export
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.comments_2)) return ",".join(out)
python
def export(self, top=True): """Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation """ out = [] if top: out.append(self._internal_name) out.append(self._to_str(self.comments_2)) return ",".join(out)
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "comments_2", ")", ")", "return", "\",\"", ".", "join", "(", "out", ")" ]
Exports object to its string representation. Args: top (bool): if True appends `internal_name` before values. All non list objects should be exported with value top=True, all list objects, that are embedded in as fields inlist objects should be exported with `top`=False Returns: str: The objects string representation
[ "Exports", "object", "to", "its", "string", "representation", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5063-L5080
train
rbuffat/pyepw
pyepw/epw.py
DataPeriod.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.number_of_records_per_hour = None else: self.number_of_records_per_hour = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_name_or_description = None else: self.data_period_name_or_description = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_start_day_of_week = None else: self.data_period_start_day_of_week = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_start_day = None else: self.data_period_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_end_day = None else: self.data_period_end_day = vals[i] i += 1
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.number_of_records_per_hour = None else: self.number_of_records_per_hour = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_name_or_description = None else: self.data_period_name_or_description = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_start_day_of_week = None else: self.data_period_start_day_of_week = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_start_day = None else: self.data_period_start_day = vals[i] i += 1 if len(vals[i]) == 0: self.data_period_end_day = None else: self.data_period_end_day = vals[i] i += 1
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "number_of_records_per_hour", "=", "None", "else", ":", "self", ".", "number_of_records_per_hour", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "data_period_name_or_description", "=", "None", "else", ":", "self", ".", "data_period_name_or_description", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "data_period_start_day_of_week", "=", "None", "else", ":", "self", ".", "data_period_start_day_of_week", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "data_period_start_day", "=", "None", "else", ":", "self", ".", "data_period_start_day", "=", "vals", "[", "i", "]", "i", "+=", "1", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "data_period_end_day", "=", "None", "else", ":", "self", ".", "data_period_end_day", "=", "vals", "[", "i", "]", "i", "+=", "1" ]
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5100-L5132
train
rbuffat/pyepw
pyepw/epw.py
DataPeriod.number_of_records_per_hour
def number_of_records_per_hour(self, value=None): """Corresponds to IDD Field `number_of_records_per_hour` Args: value (int): value for IDD Field `number_of_records_per_hour` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = int(value) except ValueError: raise ValueError( 'value {} need to be of type int ' 'for field `number_of_records_per_hour`'.format(value)) self._number_of_records_per_hour = value
python
def number_of_records_per_hour(self, value=None): """Corresponds to IDD Field `number_of_records_per_hour` Args: value (int): value for IDD Field `number_of_records_per_hour` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value """ if value is not None: try: value = int(value) except ValueError: raise ValueError( 'value {} need to be of type int ' 'for field `number_of_records_per_hour`'.format(value)) self._number_of_records_per_hour = value
[ "def", "number_of_records_per_hour", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", "'for field `number_of_records_per_hour`'", ".", "format", "(", "value", ")", ")", "self", ".", "_number_of_records_per_hour", "=", "value" ]
Corresponds to IDD Field `number_of_records_per_hour` Args: value (int): value for IDD Field `number_of_records_per_hour` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value` is not a valid value
[ "Corresponds", "to", "IDD", "Field", "number_of_records_per_hour" ]
373d4d3c8386c8d35789f086ac5f6018c2711745
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5145-L5165
train