INSTRUCTION
stringlengths
1
8.43k
RESPONSE
stringlengths
75
104k
OpenSearch wrapper
def opensearch_dispatch(request): """OpenSearch wrapper""" ctx = { 'shortname': settings.REGISTRY_PYCSW['metadata:main']['identification_title'], 'description': settings.REGISTRY_PYCSW['metadata:main']['identification_abstract'], 'developer': settings.REGISTRY_PYCSW['metadata:main']['co...
passed a string array
def good_coords(coords): """ passed a string array """ if (len(coords) != 4): return False for coord in coords[0:3]: try: num = float(coord) if (math.isnan(num)): return False if (math.isinf(num)): ...
Clear all indexes in the es core
def clear_es(): """Clear all indexes in the es core""" # TODO: should receive a catalog slug. ESHypermap.es.indices.delete(ESHypermap.index_name, ignore=[400, 404]) LOGGER.debug('Elasticsearch: Index cleared')
Create ES core indices
def create_indices(catalog_slug): """Create ES core indices """ # TODO: enable auto_create_index in the ES nodes to make this implicit. # https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#index-creation # http://support.searchly.com/customer/en/portal/quest...
kill WSGI processes that may be running in development
def kill_process(procname, scriptname): """kill WSGI processes that may be running in development""" # from http://stackoverflow.com/a/2940878 import signal import subprocess p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE) out, err = p.communicate() for line in out.decode().sp...
Populate a fresh installed Hypermap instances with basic services.
def populate_initial_services(): """ Populate a fresh installed Hypermap instances with basic services. """ services_list = ( ( 'Harvard WorldMap', 'Harvard WorldMap open source web geospatial platform', 'Hypermap:WorldMap', 'http://worldmap.harvar...
https:// www. elastic. co/ guide/ en/ elasticsearch/ reference/ current/ _the_search_api. html: param serializer:: return:
def elasticsearch(serializer, catalog): """ https://www.elastic.co/guide/en/elasticsearch/reference/current/_the_search_api.html :param serializer: :return: """ search_engine_endpoint = "{0}/{1}/_search".format(SEARCH_URL, catalog.slug) q_text = serializer.validated_data.get("q_text") ...
Search on solr endpoint: param serializer:: return:
def solr(serializer): """ Search on solr endpoint :param serializer: :return: """ search_engine_endpoint = serializer.validated_data.get("search_engine_endpoint") q_time = serializer.validated_data.get("q_time") q_geo = serializer.validated_data.get("q_geo") q_text = serializer.valid...
parse all url get params that contains dots in a representation of serializer field names for example: d. docs. limit to d_docs_limit. that makes compatible an actual API client with django - rest - framework serializers.: param request:: return: QueryDict with parsed get params.
def parse_get_params(request): """ parse all url get params that contains dots in a representation of serializer field names, for example: d.docs.limit to d_docs_limit. that makes compatible an actual API client with django-rest-framework serializers. :param request: :return: QueryDict with ...
For testing purpose
def main(): """For testing purpose""" tcp_adapter = TcpAdapter("192.168.1.3", name="HASS", activate_source=False) hdmi_network = HDMINetwork(tcp_adapter) hdmi_network.start() while True: for d in hdmi_network.devices: _LOGGER.info("Device: %s", d) time.sleep(7)
Compute difference in bits between digest1 and digest2 returns - 127 to 128 ; 128 is the same - 127 is different
def compare_hexdigests( digest1, digest2 ): """Compute difference in bits between digest1 and digest2 returns -127 to 128; 128 is the same, -127 is different""" # convert to 32-tuple of unsighed two-byte INTs digest1 = tuple([int(digest1[i:i+2],16) for i in range(0,63,2)]) digest2 = tuple([int(di...
Get accumulator for a transition n between chars a b c.
def tran3(self, a, b, c, n): """Get accumulator for a transition n between chars a, b, c.""" return (((TRAN[(a+n)&255]^TRAN[b]*(n+n+1))+TRAN[(c)^TRAN[n]])&255)
Add data to running digest increasing the accumulators for 0 - 8 triplets formed by this char and the previous 0 - 3 chars.
def update(self, data): """Add data to running digest, increasing the accumulators for 0-8 triplets formed by this char and the previous 0-3 chars.""" for character in data: if PY3: ch = character else: ch = ord(character) se...
Get digest of data seen thus far as a list of bytes.
def digest(self): """Get digest of data seen thus far as a list of bytes.""" total = 0 # number of triplets seen if self.count == 3: # 3 chars = 1 triplet total = 1 elif self.count == 4: # 4 chars = 4 triplets ...
Update running digest with content of named file.
def from_file(self, filename): """Update running digest with content of named file.""" f = open(filename, 'rb') while True: data = f.read(10480) if not data: break self.update(data) f.close()
Compute difference in bits between own digest and another. returns - 127 to 128 ; 128 is the same - 127 is different
def compare(self, otherdigest, ishex=False): """Compute difference in bits between own digest and another. returns -127 to 128; 128 is the same, -127 is different""" bits = 0 myd = self.digest() if ishex: # convert to 32-tuple of unsighed two-byte INTs ...
JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string instead of directly printing content.
def jdout(api_response): """ JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string instead of directly printing content. **Parameters:** - **api_response:** A CloudGenix-attribute extended `requests.Response` object **Returns:** Prett...
JD Output Detailed function. Meant for quick DETAILED pretty - printing of CloudGenix Request and Response objects for troubleshooting. This function returns a string instead of directly printing content.
def jdout_detailed(api_response, sensitive=False): """ JD Output Detailed function. Meant for quick DETAILED pretty-printing of CloudGenix Request and Response objects for troubleshooting. This function returns a string instead of directly printing content. **Parameters:** - **api_response:** ...
Check for a new version of the SDK on API constructor instantiation. If new version found print Notification to STDERR.
def notify_for_new_version(self): """ Check for a new version of the SDK on API constructor instantiation. If new version found, print Notification to STDERR. On failure of this check, fail silently. **Returns:** No item returned, directly prints notification to `sys.stderr`. ...
Modify ssl verification settings
def ssl_verify(self, ssl_verify): """ Modify ssl verification settings **Parameters:** - ssl_verify: - True: Verify using builtin BYTE_CA_BUNDLE. - False: No SSL Verification. - Str: Full path to a x509 PEM CA File or bundle. **Returns:...
Modify retry parameters for the SDK s rest call object.
def modify_rest_retry(self, total=8, connect=None, read=None, redirect=None, status=None, method_whitelist=urllib3.util.retry.Retry.DEFAULT_METHOD_WHITELIST, status_forcelist=None, backoff_factor=0.705883, raise_on_redirect=True, raise_on_status=True, ...
View current rest retry settings in the requests. Session () object
def view_rest_retry(self, url=None): """ View current rest retry settings in the `requests.Session()` object **Parameters:** - **url:** URL to use to determine retry methods for. Defaults to 'https://' **Returns:** Dict, Key header, value is header value. """ ...
View current cookies in the requests. Session () object
def view_cookies(self): """ View current cookies in the `requests.Session()` object **Returns:** List of Dicts, one cookie per Dict. """ return_list = [] for cookie in self._session.cookies: return_list.append(vars(cookie)) return return_list
Change the debug level of the API
def set_debug(self, debuglevel): """ Change the debug level of the API **Returns:** No item returned. """ if isinstance(debuglevel, int): self._debuglevel = debuglevel if self._debuglevel == 1: logging.basicConfig(level=logging.INFO, ...
Call subclasses via function to allow passing parent namespace to subclasses.
def _subclass_container(self): """ Call subclasses via function to allow passing parent namespace to subclasses. **Returns:** dict with subclass references. """ _parent_class = self class GetWrapper(Get): def __init__(self): self._parent_cla...
Generic REST call worker function
def rest_call(self, url, method, data=None, sensitive=False, timeout=None, content_json=True, retry=None, max_retry=None, retry_sleep=None): """ Generic REST call worker function **Parameters:** - **url:** URL for the REST call - **method:** METHOD for the...
Function to clean up ca temp file for requests.
def _cleanup_ca_temp_file(self): """ Function to clean up ca temp file for requests. **Returns:** Removes TEMP ca file, no return """ if os.name == 'nt': if isinstance(self.ca_verify_filename, (binary_type, text_type)): # windows requires file to be c...
Break auth_token up into it s constituent values.
def parse_auth_token(self, auth_token): """ Break auth_token up into it's constituent values. **Parameters:** - **auth_token:** Auth_token string **Returns:** dict with Auth Token constituents """ # remove the random security key value from the front of the a...
Update the controller string with dynamic region info. Controller string should end up as <name [ - env ] >. <region >. cloudgenix. com
def update_region_to_controller(self, region): """ Update the controller string with dynamic region info. Controller string should end up as `<name[-env]>.<region>.cloudgenix.com` **Parameters:** - **region:** region string. **Returns:** No return value, mutates the ...
Return region from a successful login response.
def parse_region(self, login_response): """ Return region from a successful login response. **Parameters:** - **login_response:** requests.Response from a successful login. **Returns:** region name. """ auth_token = login_response.cgx_content['x_auth_token'] ...
Sometimes login cookie gets sent with region info instead of api. cloudgenix. com. This function re - parses the original login request and applies cookies to the session if they now match the new region.
def reparse_login_cookie_after_region_update(self, login_response): """ Sometimes, login cookie gets sent with region info instead of api.cloudgenix.com. This function re-parses the original login request and applies cookies to the session if they now match the new region. **Parameters:...
Validate a streamed response is JSON. Return a Python dictionary either way.
def _catch_nonjson_streamresponse(rawresponse): """ Validate a streamed response is JSON. Return a Python dictionary either way. **Parameters:** - **rawresponse:** Streamed Response from Requests. **Returns:** Dictionary """ # attempt to load response for re...
URL Decode function using REGEX
def url_decode(url): """ URL Decode function using REGEX **Parameters:** - **url:** URLENCODED text string **Returns:** Non URLENCODED string """ return re.compile('%([0-9a-fA-F]{2})', re.M).sub(lambda m: chr(int(m.group(1), 16)), url)
Get optimal file system buffer size ( in bytes ) for I/ O calls.
def blksize(path): """ Get optimal file system buffer size (in bytes) for I/O calls. """ diskfreespace = win32file.GetDiskFreeSpace dirname = os.path.dirname(fullpath(path)) try: cluster_sectors, sector_size = diskfreespace(dirname)[:2] size = cluster_sectors * sector_size e...
Pass email hash return Gravatar URL. You can get email hash like this::
def gravatar(hash, size=100, rating='g', default='identicon', include_extension=False, force_default=False): """Pass email hash, return Gravatar URL. You can get email hash like this:: import hashlib avatar_hash = hashlib.md5(email.lower().encode('utf-8')).hexdigest() Visit htt...
Return avatar URL at social media. Visit https:// avatars. io for more information.
def social_media(username, platform='twitter', size='medium'): """Return avatar URL at social media. Visit https://avatars.io for more information. :param username: The username of the social media. :param platform: One of facebook, instagram, twitter, gravatar. :param size: The...
Load jcrop css file.
def jcrop_css(css_url=None): """Load jcrop css file. :param css_url: The custom CSS URL. """ if css_url is None: if current_app.config['AVATARS_SERVE_LOCAL']: css_url = url_for('avatars.static', filename='jcrop/css/jquery.Jcrop.min.css') else: ...
Load jcrop Javascript file.
def jcrop_js(js_url=None, with_jquery=True): """Load jcrop Javascript file. :param js_url: The custom JavaScript URL. :param with_jquery: Include jQuery or not, default to ``True``. """ serve_local = current_app.config['AVATARS_SERVE_LOCAL'] if js_url is None: ...
Create a crop box.
def crop_box(endpoint=None, filename=None): """Create a crop box. :param endpoint: The endpoint of view function that serve avatar image file. :param filename: The filename of the image that need to be crop. """ crop_size = current_app.config['AVATARS_CROP_BASE_WIDTH'] ...
Create a preview box.
def preview_box(endpoint=None, filename=None): """Create a preview box. :param endpoint: The endpoint of view function that serve avatar image file. :param filename: The filename of the image that need to be crop. """ preview_size = current_app.config['AVATARS_CROP_PREVIEW_SIZE'...
Initialize jcrop.
def init_jcrop(min_size=None): """Initialize jcrop. :param min_size: The minimal size of crop area. """ init_x = current_app.config['AVATARS_CROP_INIT_POS'][0] init_y = current_app.config['AVATARS_CROP_INIT_POS'][1] init_size = current_app.config['AVATARS_CROP_INIT_SIZE'...
Resize an avatar.
def resize_avatar(self, img, base_width): """Resize an avatar. :param img: The image that needs to be resize. :param base_width: The width of output image. """ w_percent = (base_width / float(img.size[0])) h_size = int((float(img.size[1]) * float(w_percent))) img...
Save an avatar as raw image return new filename.
def save_avatar(self, image): """Save an avatar as raw image, return new filename. :param image: The image that needs to be saved. """ path = current_app.config['AVATARS_SAVE_PATH'] filename = uuid4().hex + '_raw.png' image.save(os.path.join(path, filename)) retu...
Crop avatar with given size return a list of file name: [ filename_s filename_m filename_l ].
def crop_avatar(self, filename, x, y, w, h): """Crop avatar with given size, return a list of file name: [filename_s, filename_m, filename_l]. :param filename: The raw image's filename. :param x: The x-pos to start crop. :param y: The y-pos to start crop. :param w: The crop widt...
Byte representation of a PNG image
def get_image(self, string, width, height, pad=0): """ Byte representation of a PNG image """ hex_digest_byte_list = self._string_to_byte_list(string) matrix = self._create_matrix(hex_digest_byte_list) return self._create_image(matrix, width, height, pad)
Create a pastel colour hex colour string
def _get_pastel_colour(self, lighten=127): """ Create a pastel colour hex colour string """ def r(): return random.randint(0, 128) + lighten return r(), r(), r()
Determine the liminanace of an RGB colour
def _luminance(self, rgb): """ Determine the liminanace of an RGB colour """ a = [] for v in rgb: v = v / float(255) if v < 0.03928: result = v / 12.92 else: result = math.pow(((v + 0.055) / 1.055), 2.4) ...
Creates a hex digest of the input string given to create the image if it s not already hexadecimal
def _string_to_byte_list(self, data): """ Creates a hex digest of the input string given to create the image, if it's not already hexadecimal Returns: Length 16 list of rgb value range integers (each representing a byte of the hex digest) """ byte...
Check if the n ( index ) of hash_bytes is 1 or 0.
def _bit_is_one(self, n, hash_bytes): """ Check if the n (index) of hash_bytes is 1 or 0. """ scale = 16 # hexadecimal if not hash_bytes[int(n / (scale / 2))] >> int( (scale / 2) - ((n % (scale / 2)) + 1)) & 1 == 1: return False return True
Generates a PNG byte list
def _create_image(self, matrix, width, height, pad): """ Generates a PNG byte list """ image = Image.new("RGB", (width + (pad * 2), height + (pad * 2)), self.bg_colour) image_draw = ImageDraw.Draw(image) # Calculate the block width and ...
This matrix decides which blocks should be filled fg/ bg colour True for fg_colour False for bg_colour
def _create_matrix(self, byte_list): """ This matrix decides which blocks should be filled fg/bg colour True for fg_colour False for bg_colour hash_bytes - array of hash bytes values. RGB range values in each slot Returns: List representation of the matrix ...
Generate and save avatars return a list of file name: [ filename_s filename_m filename_l ].
def generate(self, text): """Generate and save avatars, return a list of file name: [filename_s, filename_m, filename_l]. :param text: The text used to generate image. """ sizes = current_app.config['AVATARS_SIZE_TUPLE'] path = current_app.config['AVATARS_SAVE_PATH'] suf...
Read values.
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.city = None else: self.city = vals[i] i += 1 if len(vals[i]) == 0: self.stat...
Corresponds to IDD Field city
def city(self, value=None): """Corresponds to IDD Field `city` Args: value (str): value for IDD Field `city` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `...
Corresponds to IDD Field state_province_region
def state_province_region(self, value=None): """Corresponds to IDD Field `state_province_region` Args: value (str): value for IDD Field `state_province_region` if `value` is None it will not be checked against the specification and is assumed to be a missing ...
Corresponds to IDD Field country
def country(self, value=None): """Corresponds to IDD Field `country` Args: value (str): value for IDD Field `country` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueEr...
Corresponds to IDD Field source
def source(self, value=None): """Corresponds to IDD Field `source` Args: value (str): value for IDD Field `source` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError...
Corresponds to IDD Field wmo usually a 6 digit field. Used as alpha in EnergyPlus.
def wmo(self, value=None): """Corresponds to IDD Field `wmo` usually a 6 digit field. Used as alpha in EnergyPlus. Args: value (str): value for IDD Field `wmo` if `value` is None it will not be checked against the specification and is assumed to be a ...
Corresponds to IDD Field latitude
def latitude(self, value=0.0): """Corresponds to IDD Field `latitude` + is North, - is South, degree minutes represented in decimal (i.e. 30 minutes is .5) Args: value (float): value for IDD Field `latitude` Unit: deg Default value: 0.0 ...
Corresponds to IDD Field longitude
def longitude(self, value=0.0): """Corresponds to IDD Field `longitude` - is West, + is East, degree minutes represented in decimal (i.e. 30 minutes is .5) Args: value (float): value for IDD Field `longitude` Unit: deg Default value: 0.0 ...
Corresponds to IDD Field timezone Time relative to GMT.
def timezone(self, value=0.0): """Corresponds to IDD Field `timezone` Time relative to GMT. Args: value (float): value for IDD Field `timezone` Unit: hr - not on standard units list??? Default value: 0.0 value >= -12.0 value <=...
Corresponds to IDD Field elevation
def elevation(self, value=0.0): """Corresponds to IDD Field `elevation` Args: value (float): value for IDD Field `elevation` Unit: m Default value: 0.0 value >= -1000.0 value < 9999.9 if `value` is None it will ...
Exports object to its string representation.
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 ...
Read values.
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.title_of_design_condition = None else: self.title_of_design_condition = vals[i] i += 1 i...
Corresponds to IDD Field title_of_design_condition
def title_of_design_condition(self, value=None): """Corresponds to IDD Field `title_of_design_condition` Args: value (str): value for IDD Field `title_of_design_condition` if `value` is None it will not be checked against the specification and is assumed to b...
Corresponds to IDD Field unkown_field Empty field in data.
def unkown_field(self, value=None): """Corresponds to IDD Field `unkown_field` Empty field in data. Args: value (str): value for IDD Field `unkown_field` if `value` is None it will not be checked against the specification and is assumed to be a missing value ...
Corresponds to IDD Field design_stat_heating
def design_stat_heating(self, value="Heating"): """Corresponds to IDD Field `design_stat_heating` Args: value (str): value for IDD Field `design_stat_heating` Accepted values are: - Heating Default value: Heating if `valu...
Corresponds to IDD Field coldestmonth
def coldestmonth(self, value=None): """Corresponds to IDD Field `coldestmonth` Args: value (int): value for IDD Field `coldestmonth` value >= 1 value <= 12 if `value` is None it will not be checked against the specification and...
Corresponds to IDD Field db996 Dry - bulb temperature corresponding to 99. 6% annual cumulative frequency of occurrence ( cold conditions )
def db996(self, value=None): """ Corresponds to IDD Field `db996` Dry-bulb temperature corresponding to 99.6% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD Field `db996` Unit: C if `value` is N...
Corresponds to IDD Field db990 Dry - bulb temperature corresponding to 90. 0% annual cumulative frequency of occurrence ( cold conditions )
def db990(self, value=None): """ Corresponds to IDD Field `db990` Dry-bulb temperature corresponding to 90.0% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD Field `db990` Unit: C if `value` is N...
Corresponds to IDD Field dp996 Dew - point temperature corresponding to 99. 6% annual cumulative frequency of occurrence ( cold conditions )
def dp996(self, value=None): """ Corresponds to IDD Field `dp996` Dew-point temperature corresponding to 99.6% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD Field `dp996` Unit: C if `value` is ...
Corresponds to IDD Field hr_dp996 humidity ratio calculated at standard atmospheric pressure at elevation of station corresponding to Dew - point temperature corresponding to 99. 6% annual cumulative frequency of occurrence ( cold conditions )
def hr_dp996(self, value=None): """ Corresponds to IDD Field `hr_dp996` humidity ratio, calculated at standard atmospheric pressure at elevation of station, corresponding to Dew-point temperature corresponding to 99.6% annual cumulative frequency of occurrence (cold conditions) ...
Corresponds to IDD Field db_dp996 mean coincident drybulb temperature corresponding to Dew - point temperature corresponding to 99. 6% annual cumulative frequency of occurrence ( cold conditions )
def db_dp996(self, value=None): """ Corresponds to IDD Field `db_dp996` mean coincident drybulb temperature corresponding to Dew-point temperature corresponding to 99.6% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD F...
Corresponds to IDD Field dp990 Dew - point temperature corresponding to 90. 0% annual cumulative frequency of occurrence ( cold conditions )
def dp990(self, value=None): """ Corresponds to IDD Field `dp990` Dew-point temperature corresponding to 90.0% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD Field `dp990` Unit: C if `value` is ...
Corresponds to IDD Field hr_dp990 humidity ratio calculated at standard atmospheric pressure at elevation of station corresponding to Dew - point temperature corresponding to 90. 0% annual cumulative frequency of occurrence ( cold conditions )
def hr_dp990(self, value=None): """ Corresponds to IDD Field `hr_dp990` humidity ratio, calculated at standard atmospheric pressure at elevation of station, corresponding to Dew-point temperature corresponding to 90.0% annual cumulative frequency of occurrence (cold conditions) ...
Corresponds to IDD Field db_dp990 mean coincident drybulb temperature corresponding to Dew - point temperature corresponding to 90. 0% annual cumulative frequency of occurrence ( cold conditions )
def db_dp990(self, value=None): """ Corresponds to IDD Field `db_dp990` mean coincident drybulb temperature corresponding to Dew-point temperature corresponding to 90.0% annual cumulative frequency of occurrence (cold conditions) Args: value (float): value for IDD F...
Corresponds to IDD Field 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 Ra...
Corresponds to IDD Field db_ws004c Mean coincident dry - bulb temperature to wind speed corresponding to 0. 40% cumulative frequency for coldest month
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...
Corresponds to IDD Field ws010c Wind speed corresponding to 1. 0% cumulative frequency of occurrence for coldest month ;
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 ...
Corresponds to IDD Field db_ws010c Mean coincident dry - bulb temperature to wind speed corresponding to 1. 0% cumulative frequency for coldest month
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 ...
Corresponds to IDD Field ws_db996 Mean wind speed coincident with 99. 6% dry - bulb temperature
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 ...
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 )
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` ...
Corresponds to IDD Field 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 `valu...
Corresponds to IDD Field dbr Daily temperature range for hottest month.
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`...
Corresponds to IDD Field db004 Dry - bulb temperature corresponding to 0. 4% annual cumulative frequency of occurrence ( warm conditions )
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 wi...
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 )
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` ...
Corresponds to IDD Field db010 Dry - bulb temperature corresponding to 1. 0% annual cumulative frequency of occurrence ( warm conditions )
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 wi...
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 )
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` ...
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 )
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` ...
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 )
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` ...
Corresponds to IDD Field wb004 Wet - bulb temperature corresponding to 0. 4% annual cumulative frequency of occurrence
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 ...
Corresponds to IDD Field db_wb004 mean coincident dry - bulb temperature to Wet - bulb temperature corresponding to 0. 4% annual cumulative frequency of occurrence
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 ...
Corresponds to IDD Field wb010 Wet - bulb temperature corresponding to 1. 0% annual cumulative frequency of occurrence
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 ...
Corresponds to IDD Field db_wb010 mean coincident dry - bulb temperature to Wet - bulb temperature corresponding to 1. 0% annual cumulative frequency of occurrence
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 ...
Corresponds to IDD Field wb020 Wet - bulb temperature corresponding to 02. 0% annual cumulative frequency of occurrence
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...
Corresponds to IDD Field db_wb020 mean coincident dry - bulb temperature to Wet - bulb temperature corresponding to 2. 0% annual cumulative frequency of occurrence
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 ...
Corresponds to IDD Field ws_db004 Mean wind speed coincident with 0. 4% dry - bulb temperature
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 ...
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 )
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` ...
Corresponds to IDD Field dp004 Dew - point temperature corresponding to 0. 4% annual cumulative frequency of occurrence
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...
Corresponds to IDD Field hr_dp004 humidity ratio corresponding to Dew - point temperature corresponding to 0. 4% annual cumulative frequency of occurrence
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 No...