repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
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...
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...
[ "def", "depth_september_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "...
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 assu...
[ "Corresponds", "to", "IDD", "Field", "depth_september_average_ground_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4268-L4290
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 b...
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 b...
[ "def", "depth_october_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'v...
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 ...
[ "Corresponds", "to", "IDD", "Field", "depth_october_average_ground_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4303-L4324
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 no...
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 no...
[ "def", "depth_november_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'...
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 ...
[ "Corresponds", "to", "IDD", "Field", "depth_november_average_ground_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4337-L4358
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 no...
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 no...
[ "def", "depth_december_average_ground_temperature", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'...
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 ...
[ "Corresponds", "to", "IDD", "Field", "depth_december_average_ground_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4371-L4392
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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "ground_t...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4407-L4447
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]) ...
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]) ...
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "GroundTemperature", "(", ")", "obj", ".", ...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4463-L4477
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: ...
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: ...
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "holiday_name", "=", "None", "else", ":", "self", ".", "holiday_name", "=", "vals", "[", "i", "]", "i...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4547-L4564
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: ...
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: ...
[ "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...
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 v...
[ "Corresponds", "to", "IDD", "Field", "holiday_name" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4577-L4599
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: ...
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: ...
[ "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 ...
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 val...
[ "Corresponds", "to", "IDD", "Field", "holiday_day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4612-L4634
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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "holiday_...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4649-L4667
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]) =...
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]) =...
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "leapyear_observed", "=", "None", "else", ":", "self", ".", "leapyear_observed", "=", "vals", "[", "i", ...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4687-L4716
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` A...
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` A...
[ "def", "leapyear_observed", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of typ...
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 ...
[ "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", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4729-L4762
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 b...
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 b...
[ "def", "daylight_saving_start_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to b...
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: i...
[ "Corresponds", "to", "IDD", "Field", "daylight_saving_start_day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4775-L4798
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 mi...
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 mi...
[ "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 ...
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 `v...
[ "Corresponds", "to", "IDD", "Field", "daylight_saving_end_day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4811-L4834
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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "leapyear...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4868-L4890
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", ...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4906-L4918
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: ...
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: ...
[ "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 '...
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" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L4931-L4953
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", ...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5001-L5013
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: ...
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: ...
[ "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 '...
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" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5026-L5048
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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "comments...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5063-L5080
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 ...
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 ...
[ "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...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5100-L5132
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 t...
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 t...
[ "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 ...
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:...
[ "Corresponds", "to", "IDD", "Field", "number_of_records_per_hour" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5145-L5165
rbuffat/pyepw
pyepw/epw.py
DataPeriod.data_period_name_or_description
def data_period_name_or_description(self, value=None): """Corresponds to IDD Field `data_period_name_or_description` Args: value (str): value for IDD Field `data_period_name_or_description` if `value` is None it will not be checked against the specification a...
python
def data_period_name_or_description(self, value=None): """Corresponds to IDD Field `data_period_name_or_description` Args: value (str): value for IDD Field `data_period_name_or_description` if `value` is None it will not be checked against the specification a...
[ "def", "data_period_name_or_description", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} nee...
Corresponds to IDD Field `data_period_name_or_description` Args: value (str): value for IDD Field `data_period_name_or_description` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: V...
[ "Corresponds", "to", "IDD", "Field", "data_period_name_or_description" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5178-L5201
rbuffat/pyepw
pyepw/epw.py
DataPeriod.data_period_start_day_of_week
def data_period_start_day_of_week(self, value=None): """Corresponds to IDD Field `data_period_start_day_of_week` Args: value (str): value for IDD Field `data_period_start_day_of_week` Accepted values are: - Sunday - Monday ...
python
def data_period_start_day_of_week(self, value=None): """Corresponds to IDD Field `data_period_start_day_of_week` Args: value (str): value for IDD Field `data_period_start_day_of_week` Accepted values are: - Sunday - Monday ...
[ "def", "data_period_start_day_of_week", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need ...
Corresponds to IDD Field `data_period_start_day_of_week` Args: value (str): value for IDD Field `data_period_start_day_of_week` Accepted values are: - Sunday - Monday - Tuesday - Wednesday ...
[ "Corresponds", "to", "IDD", "Field", "data_period_start_day_of_week" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5214-L5257
rbuffat/pyepw
pyepw/epw.py
DataPeriod.data_period_start_day
def data_period_start_day(self, value=None): """Corresponds to IDD Field `data_period_start_day` Args: value (str): value for IDD Field `data_period_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing ...
python
def data_period_start_day(self, value=None): """Corresponds to IDD Field `data_period_start_day` Args: value (str): value for IDD Field `data_period_start_day` if `value` is None it will not be checked against the specification and is assumed to be a missing ...
[ "def", "data_period_start_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of...
Corresponds to IDD Field `data_period_start_day` Args: value (str): value for IDD Field `data_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...
[ "Corresponds", "to", "IDD", "Field", "data_period_start_day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5270-L5293
rbuffat/pyepw
pyepw/epw.py
DataPeriod.data_period_end_day
def data_period_end_day(self, value=None): """Corresponds to IDD Field `data_period_end_day` Args: value (str): value for IDD Field `data_period_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value ...
python
def data_period_end_day(self, value=None): """Corresponds to IDD Field `data_period_end_day` Args: value (str): value for IDD Field `data_period_end_day` if `value` is None it will not be checked against the specification and is assumed to be a missing value ...
[ "def", "data_period_end_day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of t...
Corresponds to IDD Field `data_period_end_day` Args: value (str): value for IDD Field `data_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...
[ "Corresponds", "to", "IDD", "Field", "data_period_end_day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5306-L5329
rbuffat/pyepw
pyepw/epw.py
DataPeriod.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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "number_o...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5344-L5365
rbuffat/pyepw
pyepw/epw.py
DataPeriods.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 = DataPeriod() obj.read(vals[i:i + obj.field_count]) sel...
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 = DataPeriod() obj.read(vals[i:i + obj.field_count]) sel...
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", "+=", "1", "for", "_", "in", "range", "(", "count", ")", ":", "obj", "=", "DataPeriod", "(", ")", "obj", ".", "read...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5381-L5395
rbuffat/pyepw
pyepw/epw.py
WeatherData.read
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.year = None else: self.year = vals[i] i += 1 if len(vals[i]) == 0: self.mont...
python
def read(self, vals): """Read values. Args: vals (list): list of strings representing values """ i = 0 if len(vals[i]) == 0: self.year = None else: self.year = vals[i] i += 1 if len(vals[i]) == 0: self.mont...
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "if", "len", "(", "vals", "[", "i", "]", ")", "==", "0", ":", "self", ".", "year", "=", "None", "else", ":", "self", ".", "year", "=", "vals", "[", "i", "]", "i", "+=", "1"...
Read values. Args: vals (list): list of strings representing values
[ "Read", "values", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5498-L5680
rbuffat/pyepw
pyepw/epw.py
WeatherData.year
def year(self, value=None): """Corresponds to IDD Field `year` Args: value (int): value for IDD Field `year` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `...
python
def year(self, value=None): """Corresponds to IDD Field `year` Args: value (int): value for IDD Field `year` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `...
[ "def", "year", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", "...
Corresponds to IDD Field `year` Args: value (int): value for IDD Field `year` 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", "year" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5693-L5712
rbuffat/pyepw
pyepw/epw.py
WeatherData.month
def month(self, value=None): """Corresponds to IDD Field `month` Args: value (int): value for IDD Field `month` value >= 1 value <= 12 if `value` is None it will not be checked against the specification and is assumed to be a m...
python
def month(self, value=None): """Corresponds to IDD Field `month` Args: value (int): value for IDD Field `month` value >= 1 value <= 12 if `value` is None it will not be checked against the specification and is assumed to be a m...
[ "def", "month", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", ...
Corresponds to IDD Field `month` Args: value (int): value for IDD Field `month` value >= 1 value <= 12 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ...
[ "Corresponds", "to", "IDD", "Field", "month" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5725-L5752
rbuffat/pyepw
pyepw/epw.py
WeatherData.day
def day(self, value=None): """Corresponds to IDD Field `day` Args: value (int): value for IDD Field `day` value >= 1 value <= 31 if `value` is None it will not be checked against the specification and is assumed to be a missing...
python
def day(self, value=None): """Corresponds to IDD Field `day` Args: value (int): value for IDD Field `day` value >= 1 value <= 31 if `value` is None it will not be checked against the specification and is assumed to be a missing...
[ "def", "day", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", "'...
Corresponds to IDD Field `day` Args: value (int): value for IDD Field `day` value >= 1 value <= 31 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: Va...
[ "Corresponds", "to", "IDD", "Field", "day" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5765-L5792
rbuffat/pyepw
pyepw/epw.py
WeatherData.hour
def hour(self, value=None): """Corresponds to IDD Field `hour` Args: value (int): value for IDD Field `hour` value >= 1 value <= 24 if `value` is None it will not be checked against the specification and is assumed to be a miss...
python
def hour(self, value=None): """Corresponds to IDD Field `hour` Args: value (int): value for IDD Field `hour` value >= 1 value <= 24 if `value` is None it will not be checked against the specification and is assumed to be a miss...
[ "def", "hour", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", "...
Corresponds to IDD Field `hour` Args: value (int): value for IDD Field `hour` value >= 1 value <= 24 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ...
[ "Corresponds", "to", "IDD", "Field", "hour" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5805-L5832
rbuffat/pyepw
pyepw/epw.py
WeatherData.minute
def minute(self, value=None): """Corresponds to IDD Field `minute` Args: value (int): value for IDD Field `minute` value >= 0 value <= 60 if `value` is None it will not be checked against the specification and is assumed to be ...
python
def minute(self, value=None): """Corresponds to IDD Field `minute` Args: value (int): value for IDD Field `minute` value >= 0 value <= 60 if `value` is None it will not be checked against the specification and is assumed to be ...
[ "def", "minute", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type int '", ...
Corresponds to IDD Field `minute` Args: value (int): value for IDD Field `minute` value >= 0 value <= 60 if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ...
[ "Corresponds", "to", "IDD", "Field", "minute" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5845-L5872
rbuffat/pyepw
pyepw/epw.py
WeatherData.data_source_and_uncertainty_flags
def data_source_and_uncertainty_flags(self, value=None): """Corresponds to IDD Field `data_source_and_uncertainty_flags` Initial day of weather file is checked by EnergyPlus for validity (as shown below) Each field is checked for "missing" as shown below. Reasonable values, calculated va...
python
def data_source_and_uncertainty_flags(self, value=None): """Corresponds to IDD Field `data_source_and_uncertainty_flags` Initial day of weather file is checked by EnergyPlus for validity (as shown below) Each field is checked for "missing" as shown below. Reasonable values, calculated va...
[ "def", "data_source_and_uncertainty_flags", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "str", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} n...
Corresponds to IDD Field `data_source_and_uncertainty_flags` Initial day of weather file is checked by EnergyPlus for validity (as shown below) Each field is checked for "missing" as shown below. Reasonable values, calculated values or the last "good" value is substituted. Args: ...
[ "Corresponds", "to", "IDD", "Field", "data_source_and_uncertainty_flags", "Initial", "day", "of", "weather", "file", "is", "checked", "by", "EnergyPlus", "for", "validity", "(", "as", "shown", "below", ")", "Each", "field", "is", "checked", "for", "missing", "as...
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5885-L5912
rbuffat/pyepw
pyepw/epw.py
WeatherData.dry_bulb_temperature
def dry_bulb_temperature(self, value=99.9): """Corresponds to IDD Field `dry_bulb_temperature` Args: value (float): value for IDD Field `dry_bulb_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 ...
python
def dry_bulb_temperature(self, value=99.9): """Corresponds to IDD Field `dry_bulb_temperature` Args: value (float): value for IDD Field `dry_bulb_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 ...
[ "def", "dry_bulb_temperature", "(", "self", ",", "value", "=", "99.9", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be o...
Corresponds to IDD Field `dry_bulb_temperature` Args: value (float): value for IDD Field `dry_bulb_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 if `value` is None it will not be checked against th...
[ "Corresponds", "to", "IDD", "Field", "dry_bulb_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5925-L5955
rbuffat/pyepw
pyepw/epw.py
WeatherData.dew_point_temperature
def dew_point_temperature(self, value=99.9): """Corresponds to IDD Field `dew_point_temperature` Args: value (float): value for IDD Field `dew_point_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 ...
python
def dew_point_temperature(self, value=99.9): """Corresponds to IDD Field `dew_point_temperature` Args: value (float): value for IDD Field `dew_point_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 ...
[ "def", "dew_point_temperature", "(", "self", ",", "value", "=", "99.9", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be ...
Corresponds to IDD Field `dew_point_temperature` Args: value (float): value for IDD Field `dew_point_temperature` Unit: C value > -70.0 value < 70.0 Missing value: 99.9 if `value` is None it will not be checked against ...
[ "Corresponds", "to", "IDD", "Field", "dew_point_temperature" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L5968-L5998
rbuffat/pyepw
pyepw/epw.py
WeatherData.relative_humidity
def relative_humidity(self, value=999): """Corresponds to IDD Field `relative_humidity` Args: value (int): value for IDD Field `relative_humidity` value >= 0 value <= 110 Missing value: 999 if `value` is None it will not be che...
python
def relative_humidity(self, value=999): """Corresponds to IDD Field `relative_humidity` Args: value (int): value for IDD Field `relative_humidity` value >= 0 value <= 110 Missing value: 999 if `value` is None it will not be che...
[ "def", "relative_humidity", "(", "self", ",", "value", "=", "999", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type...
Corresponds to IDD Field `relative_humidity` Args: value (int): value for IDD Field `relative_humidity` value >= 0 value <= 110 Missing value: 999 if `value` is None it will not be checked against the specification and ...
[ "Corresponds", "to", "IDD", "Field", "relative_humidity" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6011-L6039
rbuffat/pyepw
pyepw/epw.py
WeatherData.atmospheric_station_pressure
def atmospheric_station_pressure(self, value=999999): """Corresponds to IDD Field `atmospheric_station_pressure` Args: value (int): value for IDD Field `atmospheric_station_pressure` Unit: Pa value > 31000 value < 120000 Missin...
python
def atmospheric_station_pressure(self, value=999999): """Corresponds to IDD Field `atmospheric_station_pressure` Args: value (int): value for IDD Field `atmospheric_station_pressure` Unit: Pa value > 31000 value < 120000 Missin...
[ "def", "atmospheric_station_pressure", "(", "self", ",", "value", "=", "999999", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need...
Corresponds to IDD Field `atmospheric_station_pressure` Args: value (int): value for IDD Field `atmospheric_station_pressure` Unit: Pa value > 31000 value < 120000 Missing value: 999999 if `value` is None it will not be...
[ "Corresponds", "to", "IDD", "Field", "atmospheric_station_pressure" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6052-L6082
rbuffat/pyepw
pyepw/epw.py
WeatherData.extraterrestrial_horizontal_radiation
def extraterrestrial_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `extraterrestrial_horizontal_radiation` Args: value (float): value for IDD Field `extraterrestrial_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missin...
python
def extraterrestrial_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `extraterrestrial_horizontal_radiation` Args: value (float): value for IDD Field `extraterrestrial_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missin...
[ "def", "extraterrestrial_horizontal_radiation", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'va...
Corresponds to IDD Field `extraterrestrial_horizontal_radiation` Args: value (float): value for IDD Field `extraterrestrial_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be checked ...
[ "Corresponds", "to", "IDD", "Field", "extraterrestrial_horizontal_radiation" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6095-L6122
rbuffat/pyepw
pyepw/epw.py
WeatherData.extraterrestrial_direct_normal_radiation
def extraterrestrial_direct_normal_radiation(self, value=9999.0): """Corresponds to IDD Field `extraterrestrial_direct_normal_radiation` Args: value (float): value for IDD Field `extraterrestrial_direct_normal_radiation` Unit: Wh/m2 value >= 0.0 ...
python
def extraterrestrial_direct_normal_radiation(self, value=9999.0): """Corresponds to IDD Field `extraterrestrial_direct_normal_radiation` Args: value (float): value for IDD Field `extraterrestrial_direct_normal_radiation` Unit: Wh/m2 value >= 0.0 ...
[ "def", "extraterrestrial_direct_normal_radiation", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "...
Corresponds to IDD Field `extraterrestrial_direct_normal_radiation` Args: value (float): value for IDD Field `extraterrestrial_direct_normal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be ch...
[ "Corresponds", "to", "IDD", "Field", "extraterrestrial_direct_normal_radiation" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6135-L6162
rbuffat/pyepw
pyepw/epw.py
WeatherData.horizontal_infrared_radiation_intensity
def horizontal_infrared_radiation_intensity(self, value=9999.0): """Corresponds to IDD Field `horizontal_infrared_radiation_intensity` Args: value (float): value for IDD Field `horizontal_infrared_radiation_intensity` Unit: Wh/m2 value >= 0.0 ...
python
def horizontal_infrared_radiation_intensity(self, value=9999.0): """Corresponds to IDD Field `horizontal_infrared_radiation_intensity` Args: value (float): value for IDD Field `horizontal_infrared_radiation_intensity` Unit: Wh/m2 value >= 0.0 ...
[ "def", "horizontal_infrared_radiation_intensity", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'...
Corresponds to IDD Field `horizontal_infrared_radiation_intensity` Args: value (float): value for IDD Field `horizontal_infrared_radiation_intensity` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be chec...
[ "Corresponds", "to", "IDD", "Field", "horizontal_infrared_radiation_intensity" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6175-L6202
rbuffat/pyepw
pyepw/epw.py
WeatherData.global_horizontal_radiation
def global_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `global_horizontal_radiation` Args: value (float): value for IDD Field `global_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 ...
python
def global_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `global_horizontal_radiation` Args: value (float): value for IDD Field `global_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 ...
[ "def", "global_horizontal_radiation", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} nee...
Corresponds to IDD Field `global_horizontal_radiation` Args: value (float): value for IDD Field `global_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be checked against the ...
[ "Corresponds", "to", "IDD", "Field", "global_horizontal_radiation" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6215-L6241
rbuffat/pyepw
pyepw/epw.py
WeatherData.direct_normal_radiation
def direct_normal_radiation(self, value=9999.0): """Corresponds to IDD Field `direct_normal_radiation` Args: value (float): value for IDD Field `direct_normal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value`...
python
def direct_normal_radiation(self, value=9999.0): """Corresponds to IDD Field `direct_normal_radiation` Args: value (float): value for IDD Field `direct_normal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value`...
[ "def", "direct_normal_radiation", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to...
Corresponds to IDD Field `direct_normal_radiation` Args: value (float): value for IDD Field `direct_normal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be checked against the ...
[ "Corresponds", "to", "IDD", "Field", "direct_normal_radiation" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6254-L6280
rbuffat/pyepw
pyepw/epw.py
WeatherData.diffuse_horizontal_radiation
def diffuse_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `diffuse_horizontal_radiation` Args: value (float): value for IDD Field `diffuse_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 ...
python
def diffuse_horizontal_radiation(self, value=9999.0): """Corresponds to IDD Field `diffuse_horizontal_radiation` Args: value (float): value for IDD Field `diffuse_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 ...
[ "def", "diffuse_horizontal_radiation", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} ne...
Corresponds to IDD Field `diffuse_horizontal_radiation` Args: value (float): value for IDD Field `diffuse_horizontal_radiation` Unit: Wh/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be checked against the ...
[ "Corresponds", "to", "IDD", "Field", "diffuse_horizontal_radiation" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6293-L6319
rbuffat/pyepw
pyepw/epw.py
WeatherData.global_horizontal_illuminance
def global_horizontal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `global_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `global_horizontal_illuminance` Unit: lux value >= 0.0 ...
python
def global_horizontal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `global_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `global_horizontal_illuminance` Unit: lux value >= 0.0 ...
[ "def", "global_horizontal_illuminance", "(", "self", ",", "value", "=", "999999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {}...
Corresponds to IDD Field `global_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `global_horizontal_illuminance` Unit: lux value >= 0.0 Missing value: 999999.0 if `value` is None it...
[ "Corresponds", "to", "IDD", "Field", "global_horizontal_illuminance", "will", "be", "missing", "if", ">", "=", "999900" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6332-L6358
rbuffat/pyepw
pyepw/epw.py
WeatherData.direct_normal_illuminance
def direct_normal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `direct_normal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `direct_normal_illuminance` Unit: lux value >= 0.0 Mis...
python
def direct_normal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `direct_normal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `direct_normal_illuminance` Unit: lux value >= 0.0 Mis...
[ "def", "direct_normal_illuminance", "(", "self", ",", "value", "=", "999999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} nee...
Corresponds to IDD Field `direct_normal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `direct_normal_illuminance` Unit: lux value >= 0.0 Missing value: 999999.0 if `value` is None it will no...
[ "Corresponds", "to", "IDD", "Field", "direct_normal_illuminance", "will", "be", "missing", "if", ">", "=", "999900" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6371-L6397
rbuffat/pyepw
pyepw/epw.py
WeatherData.diffuse_horizontal_illuminance
def diffuse_horizontal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `diffuse_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `diffuse_horizontal_illuminance` Unit: lux value >= 0.0 ...
python
def diffuse_horizontal_illuminance(self, value=999999.0): """ Corresponds to IDD Field `diffuse_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `diffuse_horizontal_illuminance` Unit: lux value >= 0.0 ...
[ "def", "diffuse_horizontal_illuminance", "(", "self", ",", "value", "=", "999999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {...
Corresponds to IDD Field `diffuse_horizontal_illuminance` will be missing if >= 999900 Args: value (float): value for IDD Field `diffuse_horizontal_illuminance` Unit: lux value >= 0.0 Missing value: 999999.0 if `value` is None ...
[ "Corresponds", "to", "IDD", "Field", "diffuse_horizontal_illuminance", "will", "be", "missing", "if", ">", "=", "999900" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6410-L6436
rbuffat/pyepw
pyepw/epw.py
WeatherData.zenith_luminance
def zenith_luminance(self, value=9999.0): """ Corresponds to IDD Field `zenith_luminance` will be missing if >= 9999 Args: value (float): value for IDD Field `zenith_luminance` Unit: Cd/m2 value >= 0.0 Missing value: 9999.0 ...
python
def zenith_luminance(self, value=9999.0): """ Corresponds to IDD Field `zenith_luminance` will be missing if >= 9999 Args: value (float): value for IDD Field `zenith_luminance` Unit: Cd/m2 value >= 0.0 Missing value: 9999.0 ...
[ "def", "zenith_luminance", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of ...
Corresponds to IDD Field `zenith_luminance` will be missing if >= 9999 Args: value (float): value for IDD Field `zenith_luminance` Unit: Cd/m2 value >= 0.0 Missing value: 9999.0 if `value` is None it will not be checked against...
[ "Corresponds", "to", "IDD", "Field", "zenith_luminance", "will", "be", "missing", "if", ">", "=", "9999" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6449-L6474
rbuffat/pyepw
pyepw/epw.py
WeatherData.wind_direction
def wind_direction(self, value=999.0): """Corresponds to IDD Field `wind_direction` Args: value (float): value for IDD Field `wind_direction` Unit: degrees value >= 0.0 value <= 360.0 Missing value: 999.0 if `va...
python
def wind_direction(self, value=999.0): """Corresponds to IDD Field `wind_direction` Args: value (float): value for IDD Field `wind_direction` Unit: degrees value >= 0.0 value <= 360.0 Missing value: 999.0 if `va...
[ "def", "wind_direction", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of typ...
Corresponds to IDD Field `wind_direction` Args: value (float): value for IDD Field `wind_direction` Unit: degrees value >= 0.0 value <= 360.0 Missing value: 999.0 if `value` is None it will not be checked against the ...
[ "Corresponds", "to", "IDD", "Field", "wind_direction" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6487-L6516
rbuffat/pyepw
pyepw/epw.py
WeatherData.wind_speed
def wind_speed(self, value=999.0): """Corresponds to IDD Field `wind_speed` Args: value (float): value for IDD Field `wind_speed` Unit: m/s value >= 0.0 value <= 40.0 Missing value: 999.0 if `value` is None it w...
python
def wind_speed(self, value=999.0): """Corresponds to IDD Field `wind_speed` Args: value (float): value for IDD Field `wind_speed` Unit: m/s value >= 0.0 value <= 40.0 Missing value: 999.0 if `value` is None it w...
[ "def", "wind_speed", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type fl...
Corresponds to IDD Field `wind_speed` Args: value (float): value for IDD Field `wind_speed` Unit: m/s value >= 0.0 value <= 40.0 Missing value: 999.0 if `value` is None it will not be checked against the ...
[ "Corresponds", "to", "IDD", "Field", "wind_speed" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6529-L6558
rbuffat/pyepw
pyepw/epw.py
WeatherData.total_sky_cover
def total_sky_cover(self, value=99.0): """Corresponds to IDD Field `total_sky_cover` This is the value for total sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena at the hour indicated a...
python
def total_sky_cover(self, value=99.0): """Corresponds to IDD Field `total_sky_cover` This is the value for total sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena at the hour indicated a...
[ "def", "total_sky_cover", "(", "self", ",", "value", "=", "99.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of typ...
Corresponds to IDD Field `total_sky_cover` This is the value for total sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena at the hour indicated at the time indicated.) Args: ...
[ "Corresponds", "to", "IDD", "Field", "total_sky_cover", "This", "is", "the", "value", "for", "total", "sky", "cover", "(", "tenths", "of", "coverage", ")", ".", "(", "i", ".", "e", ".", "1", "is", "1", "/", "10", "covered", ".", "10", "is", "total", ...
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6571-L6602
rbuffat/pyepw
pyepw/epw.py
WeatherData.opaque_sky_cover
def opaque_sky_cover(self, value=99.0): """Corresponds to IDD Field `opaque_sky_cover` This is the value for opaque sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena that prevent observ...
python
def opaque_sky_cover(self, value=99.0): """Corresponds to IDD Field `opaque_sky_cover` This is the value for opaque sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena that prevent observ...
[ "def", "opaque_sky_cover", "(", "self", ",", "value", "=", "99.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of ty...
Corresponds to IDD Field `opaque_sky_cover` This is the value for opaque sky cover (tenths of coverage). (i.e. 1 is 1/10 covered. 10 is total coverage). (Amount of sky dome in tenths covered by clouds or obscuring phenomena that prevent observing the sky or higher cloud layers at the t...
[ "Corresponds", "to", "IDD", "Field", "opaque_sky_cover", "This", "is", "the", "value", "for", "opaque", "sky", "cover", "(", "tenths", "of", "coverage", ")", ".", "(", "i", ".", "e", ".", "1", "is", "1", "/", "10", "covered", ".", "10", "is", "total"...
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6615-L6649
rbuffat/pyepw
pyepw/epw.py
WeatherData.visibility
def visibility(self, value=9999.0): """Corresponds to IDD Field `visibility` This is the value for visibility in km. (Horizontal visibility at the time indicated.) Args: value (float): value for IDD Field `visibility` Unit: km Missing value: 9999.0 ...
python
def visibility(self, value=9999.0): """Corresponds to IDD Field `visibility` This is the value for visibility in km. (Horizontal visibility at the time indicated.) Args: value (float): value for IDD Field `visibility` Unit: km Missing value: 9999.0 ...
[ "def", "visibility", "(", "self", ",", "value", "=", "9999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type f...
Corresponds to IDD Field `visibility` This is the value for visibility in km. (Horizontal visibility at the time indicated.) Args: value (float): value for IDD Field `visibility` Unit: km Missing value: 9999.0 if `value` is None it will not be...
[ "Corresponds", "to", "IDD", "Field", "visibility", "This", "is", "the", "value", "for", "visibility", "in", "km", ".", "(", "Horizontal", "visibility", "at", "the", "time", "indicated", ".", ")" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6662-L6684
rbuffat/pyepw
pyepw/epw.py
WeatherData.ceiling_height
def ceiling_height(self, value=99999.0): """Corresponds to IDD Field `ceiling_height` This is the value for ceiling height in m. (77777 is unlimited ceiling height. 88888 is cirroform ceiling.) It is not currently used in EnergyPlus calculations. Args: value (float):...
python
def ceiling_height(self, value=99999.0): """Corresponds to IDD Field `ceiling_height` This is the value for ceiling height in m. (77777 is unlimited ceiling height. 88888 is cirroform ceiling.) It is not currently used in EnergyPlus calculations. Args: value (float):...
[ "def", "ceiling_height", "(", "self", ",", "value", "=", "99999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of t...
Corresponds to IDD Field `ceiling_height` This is the value for ceiling height in m. (77777 is unlimited ceiling height. 88888 is cirroform ceiling.) It is not currently used in EnergyPlus calculations. Args: value (float): value for IDD Field `ceiling_height` ...
[ "Corresponds", "to", "IDD", "Field", "ceiling_height", "This", "is", "the", "value", "for", "ceiling", "height", "in", "m", ".", "(", "77777", "is", "unlimited", "ceiling", "height", ".", "88888", "is", "cirroform", "ceiling", ".", ")", "It", "is", "not", ...
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6697-L6721
rbuffat/pyepw
pyepw/epw.py
WeatherData.present_weather_observation
def present_weather_observation(self, value=None): """Corresponds to IDD Field `present_weather_observation` If the value of the field is 0, then the observed weather codes are taken from the following field. If the value of the field is 9, then "missing" weather is assumed. Since the pr...
python
def present_weather_observation(self, value=None): """Corresponds to IDD Field `present_weather_observation` If the value of the field is 0, then the observed weather codes are taken from the following field. If the value of the field is 9, then "missing" weather is assumed. Since the pr...
[ "def", "present_weather_observation", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to...
Corresponds to IDD Field `present_weather_observation` If the value of the field is 0, then the observed weather codes are taken from the following field. If the value of the field is 9, then "missing" weather is assumed. Since the primary use of these fields (Present Weather Observation...
[ "Corresponds", "to", "IDD", "Field", "present_weather_observation", "If", "the", "value", "of", "the", "field", "is", "0", "then", "the", "observed", "weather", "codes", "are", "taken", "from", "the", "following", "field", ".", "If", "the", "value", "of", "t...
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6734-L6759
rbuffat/pyepw
pyepw/epw.py
WeatherData.present_weather_codes
def present_weather_codes(self, value=None): """Corresponds to IDD Field `present_weather_codes` Args: value (int): value for IDD Field `present_weather_codes` if `value` is None it will not be checked against the specification and is assumed to be a missing ...
python
def present_weather_codes(self, value=None): """Corresponds to IDD Field `present_weather_codes` Args: value (int): value for IDD Field `present_weather_codes` if `value` is None it will not be checked against the specification and is assumed to be a missing ...
[ "def", "present_weather_codes", "(", "self", ",", "value", "=", "None", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of...
Corresponds to IDD Field `present_weather_codes` Args: value (int): value for IDD Field `present_weather_codes` if `value` is None it will not be checked against the specification and is assumed to be a missing value Raises: ValueError: if `value...
[ "Corresponds", "to", "IDD", "Field", "present_weather_codes" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6772-L6792
rbuffat/pyepw
pyepw/epw.py
WeatherData.precipitable_water
def precipitable_water(self, value=999.0): """Corresponds to IDD Field `precipitable_water` Args: value (float): value for IDD Field `precipitable_water` Unit: mm Missing value: 999.0 if `value` is None it will not be checked against the ...
python
def precipitable_water(self, value=999.0): """Corresponds to IDD Field `precipitable_water` Args: value (float): value for IDD Field `precipitable_water` Unit: mm Missing value: 999.0 if `value` is None it will not be checked against the ...
[ "def", "precipitable_water", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of...
Corresponds to IDD Field `precipitable_water` Args: value (float): value for IDD Field `precipitable_water` Unit: mm Missing value: 999.0 if `value` is None it will not be checked against the specification and is assumed to be a missin...
[ "Corresponds", "to", "IDD", "Field", "precipitable_water" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6805-L6827
rbuffat/pyepw
pyepw/epw.py
WeatherData.aerosol_optical_depth
def aerosol_optical_depth(self, value=0.999): """Corresponds to IDD Field `aerosol_optical_depth` Args: value (float): value for IDD Field `aerosol_optical_depth` Unit: thousandths Missing value: 0.999 if `value` is None it will not be checked...
python
def aerosol_optical_depth(self, value=0.999): """Corresponds to IDD Field `aerosol_optical_depth` Args: value (float): value for IDD Field `aerosol_optical_depth` Unit: thousandths Missing value: 0.999 if `value` is None it will not be checked...
[ "def", "aerosol_optical_depth", "(", "self", ",", "value", "=", "0.999", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be...
Corresponds to IDD Field `aerosol_optical_depth` Args: value (float): value for IDD Field `aerosol_optical_depth` Unit: thousandths Missing value: 0.999 if `value` is None it will not be checked against the specification and is assumed...
[ "Corresponds", "to", "IDD", "Field", "aerosol_optical_depth" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6840-L6862
rbuffat/pyepw
pyepw/epw.py
WeatherData.snow_depth
def snow_depth(self, value=999.0): """Corresponds to IDD Field `snow_depth` Args: value (float): value for IDD Field `snow_depth` Unit: cm Missing value: 999.0 if `value` is None it will not be checked against the specification...
python
def snow_depth(self, value=999.0): """Corresponds to IDD Field `snow_depth` Args: value (float): value for IDD Field `snow_depth` Unit: cm Missing value: 999.0 if `value` is None it will not be checked against the specification...
[ "def", "snow_depth", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type fl...
Corresponds to IDD Field `snow_depth` Args: value (float): value for IDD Field `snow_depth` Unit: cm Missing value: 999.0 if `value` is None it will not be checked against the specification and is assumed to be a missing value ...
[ "Corresponds", "to", "IDD", "Field", "snow_depth" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6875-L6896
rbuffat/pyepw
pyepw/epw.py
WeatherData.days_since_last_snowfall
def days_since_last_snowfall(self, value=99): """Corresponds to IDD Field `days_since_last_snowfall` Args: value (int): value for IDD Field `days_since_last_snowfall` Missing value: 99 if `value` is None it will not be checked against the spec...
python
def days_since_last_snowfall(self, value=99): """Corresponds to IDD Field `days_since_last_snowfall` Args: value (int): value for IDD Field `days_since_last_snowfall` Missing value: 99 if `value` is None it will not be checked against the spec...
[ "def", "days_since_last_snowfall", "(", "self", ",", "value", "=", "99", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "int", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be o...
Corresponds to IDD Field `days_since_last_snowfall` Args: value (int): value for IDD Field `days_since_last_snowfall` Missing value: 99 if `value` is None it will not be checked against the specification and is assumed to be a missing value R...
[ "Corresponds", "to", "IDD", "Field", "days_since_last_snowfall" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6909-L6930
rbuffat/pyepw
pyepw/epw.py
WeatherData.albedo
def albedo(self, value=999.0): """Corresponds to IDD Field `albedo` Args: value (float): value for IDD Field `albedo` Missing value: 999.0 if `value` is None it will not be checked against the specification and is assumed to be a missing value...
python
def albedo(self, value=999.0): """Corresponds to IDD Field `albedo` Args: value (float): value for IDD Field `albedo` Missing value: 999.0 if `value` is None it will not be checked against the specification and is assumed to be a missing value...
[ "def", "albedo", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need to be of type float ...
Corresponds to IDD Field `albedo` Args: value (float): value for IDD Field `albedo` Missing value: 999.0 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", "albedo" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6943-L6963
rbuffat/pyepw
pyepw/epw.py
WeatherData.liquid_precipitation_depth
def liquid_precipitation_depth(self, value=999.0): """Corresponds to IDD Field `liquid_precipitation_depth` Args: value (float): value for IDD Field `liquid_precipitation_depth` Unit: mm Missing value: 999.0 if `value` is None it will not be c...
python
def liquid_precipitation_depth(self, value=999.0): """Corresponds to IDD Field `liquid_precipitation_depth` Args: value (float): value for IDD Field `liquid_precipitation_depth` Unit: mm Missing value: 999.0 if `value` is None it will not be c...
[ "def", "liquid_precipitation_depth", "(", "self", ",", "value", "=", "999.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} need ...
Corresponds to IDD Field `liquid_precipitation_depth` Args: value (float): value for IDD Field `liquid_precipitation_depth` Unit: mm Missing value: 999.0 if `value` is None it will not be checked against the specification and is assume...
[ "Corresponds", "to", "IDD", "Field", "liquid_precipitation_depth" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L6976-L6998
rbuffat/pyepw
pyepw/epw.py
WeatherData.liquid_precipitation_quantity
def liquid_precipitation_quantity(self, value=99.0): """Corresponds to IDD Field `liquid_precipitation_quantity` Args: value (float): value for IDD Field `liquid_precipitation_quantity` Unit: hr Missing value: 99.0 if `value` is None it will n...
python
def liquid_precipitation_quantity(self, value=99.0): """Corresponds to IDD Field `liquid_precipitation_quantity` Args: value (float): value for IDD Field `liquid_precipitation_quantity` Unit: hr Missing value: 99.0 if `value` is None it will n...
[ "def", "liquid_precipitation_quantity", "(", "self", ",", "value", "=", "99.0", ")", ":", "if", "value", "is", "not", "None", ":", "try", ":", "value", "=", "float", "(", "value", ")", "except", "ValueError", ":", "raise", "ValueError", "(", "'value {} nee...
Corresponds to IDD Field `liquid_precipitation_quantity` Args: value (float): value for IDD Field `liquid_precipitation_quantity` Unit: hr Missing value: 99.0 if `value` is None it will not be checked against the specification and is a...
[ "Corresponds", "to", "IDD", "Field", "liquid_precipitation_quantity" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7011-L7033
rbuffat/pyepw
pyepw/epw.py
WeatherData.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 ...
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 ...
[ "def", "export", "(", "self", ",", "top", "=", "True", ")", ":", "out", "=", "[", "]", "if", "top", ":", "out", ".", "append", "(", "self", ".", "_internal_name", ")", "out", ".", "append", "(", "self", ".", "_to_str", "(", "self", ".", "year", ...
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 expor...
[ "Exports", "object", "to", "its", "string", "representation", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7048-L7099
rbuffat/pyepw
pyepw/epw.py
EPW.add_weatherdata
def add_weatherdata(self, data): """Appends weather data. Args: data (WeatherData): weather data object """ if not isinstance(data, WeatherData): raise ValueError('Weather data need to be of type WeatherData') self._data["WEATHER DATA"].append(data)
python
def add_weatherdata(self, data): """Appends weather data. Args: data (WeatherData): weather data object """ if not isinstance(data, WeatherData): raise ValueError('Weather data need to be of type WeatherData') self._data["WEATHER DATA"].append(data)
[ "def", "add_weatherdata", "(", "self", ",", "data", ")", ":", "if", "not", "isinstance", "(", "data", ",", "WeatherData", ")", ":", "raise", "ValueError", "(", "'Weather data need to be of type WeatherData'", ")", "self", ".", "_data", "[", "\"WEATHER DATA\"", "...
Appends weather data. Args: data (WeatherData): weather data object
[ "Appends", "weather", "data", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7315-L7324
rbuffat/pyepw
pyepw/epw.py
EPW.save
def save(self, path, check=True): """Save WeatherData in EPW format to path. Args: path (str): path where EPW file should be saved """ with open(path, 'w') as f: if check: if ("LOCATION" not in self._data or self._data["LO...
python
def save(self, path, check=True): """Save WeatherData in EPW format to path. Args: path (str): path where EPW file should be saved """ with open(path, 'w') as f: if check: if ("LOCATION" not in self._data or self._data["LO...
[ "def", "save", "(", "self", ",", "path", ",", "check", "=", "True", ")", ":", "with", "open", "(", "path", ",", "'w'", ")", "as", "f", ":", "if", "check", ":", "if", "(", "\"LOCATION\"", "not", "in", "self", ".", "_data", "or", "self", ".", "_d...
Save WeatherData in EPW format to path. Args: path (str): path where EPW file should be saved
[ "Save", "WeatherData", "in", "EPW", "format", "to", "path", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7326-L7388
rbuffat/pyepw
pyepw/epw.py
EPW._create_datadict
def _create_datadict(cls, internal_name): """Creates an object depending on `internal_name` Args: internal_name (str): IDD name Raises: ValueError: if `internal_name` cannot be matched to a data dictionary object """ if internal_name == "LOCATION": ...
python
def _create_datadict(cls, internal_name): """Creates an object depending on `internal_name` Args: internal_name (str): IDD name Raises: ValueError: if `internal_name` cannot be matched to a data dictionary object """ if internal_name == "LOCATION": ...
[ "def", "_create_datadict", "(", "cls", ",", "internal_name", ")", ":", "if", "internal_name", "==", "\"LOCATION\"", ":", "return", "Location", "(", ")", "if", "internal_name", "==", "\"DESIGN CONDITIONS\"", ":", "return", "DesignConditions", "(", ")", "if", "int...
Creates an object depending on `internal_name` Args: internal_name (str): IDD name Raises: ValueError: if `internal_name` cannot be matched to a data dictionary object
[ "Creates", "an", "object", "depending", "on", "internal_name" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7391-L7418
rbuffat/pyepw
pyepw/epw.py
EPW.read
def read(self, path): """Read EPW weather data from path. Args: path (str): path to read weather data from """ with open(path, "r") as f: for line in f: line = line.strip() match_obj_name = re.search(r"^([A-Z][A-Z/ \d]+),", line) ...
python
def read(self, path): """Read EPW weather data from path. Args: path (str): path to read weather data from """ with open(path, "r") as f: for line in f: line = line.strip() match_obj_name = re.search(r"^([A-Z][A-Z/ \d]+),", line) ...
[ "def", "read", "(", "self", ",", "path", ")", ":", "with", "open", "(", "path", ",", "\"r\"", ")", "as", "f", ":", "for", "line", "in", "f", ":", "line", "=", "line", ".", "strip", "(", ")", "match_obj_name", "=", "re", ".", "search", "(", "r\"...
Read EPW weather data from path. Args: path (str): path to read weather data from
[ "Read", "EPW", "weather", "data", "from", "path", "." ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/pyepw/epw.py#L7420-L7442
sods/ods
pods/notebook.py
display_url
def display_url(target): """Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation! :param target: the url to display. :type target: string.""" prefix = u"http://" if not target.startswith("http") ...
python
def display_url(target): """Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation! :param target: the url to display. :type target: string.""" prefix = u"http://" if not target.startswith("http") ...
[ "def", "display_url", "(", "target", ")", ":", "prefix", "=", "u\"http://\"", "if", "not", "target", ".", "startswith", "(", "\"http\"", ")", "else", "u\"\"", "target", "=", "prefix", "+", "target", "display", "(", "HTML", "(", "u'<a href=\"{t}\" target=_blank...
Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation! :param target: the url to display. :type target: string.
[ "Displaying", "URL", "in", "an", "IPython", "notebook", "to", "allow", "the", "user", "to", "click", "and", "check", "on", "information", ".", "With", "thanks", "to", "Fernando", "Perez", "for", "putting", "together", "the", "implementation!", ":", "param", ...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L11-L18
sods/ods
pods/notebook.py
iframe_url
def iframe_url(target, width=500, height=400, scrolling=True, border=0, frameborder=0): """Produce an iframe for displaying an item in HTML window. :param target: the target url. :type target: string :param width: the width of the iframe (default 500). :type width: int :param height: the height ...
python
def iframe_url(target, width=500, height=400, scrolling=True, border=0, frameborder=0): """Produce an iframe for displaying an item in HTML window. :param target: the target url. :type target: string :param width: the width of the iframe (default 500). :type width: int :param height: the height ...
[ "def", "iframe_url", "(", "target", ",", "width", "=", "500", ",", "height", "=", "400", ",", "scrolling", "=", "True", ",", "border", "=", "0", ",", "frameborder", "=", "0", ")", ":", "prefix", "=", "u\"http://\"", "if", "not", "target", ".", "start...
Produce an iframe for displaying an item in HTML window. :param target: the target url. :type target: string :param width: the width of the iframe (default 500). :type width: int :param height: the height of the iframe (default 400). :type height: int :param scrolling: whether or not to allo...
[ "Produce", "an", "iframe", "for", "displaying", "an", "item", "in", "HTML", "window", ".", ":", "param", "target", ":", "the", "target", "url", ".", ":", "type", "target", ":", "string", ":", "param", "width", ":", "the", "width", "of", "the", "iframe"...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L20-L41
sods/ods
pods/notebook.py
display_iframe_url
def display_iframe_url(target, **kwargs): """Display the contents of a URL in an IPython notebook. :param target: the target url. :type target: string .. seealso:: `iframe_url()` for additional arguments.""" txt = iframe_url(target, **kwargs) display(HTML(txt))
python
def display_iframe_url(target, **kwargs): """Display the contents of a URL in an IPython notebook. :param target: the target url. :type target: string .. seealso:: `iframe_url()` for additional arguments.""" txt = iframe_url(target, **kwargs) display(HTML(txt))
[ "def", "display_iframe_url", "(", "target", ",", "*", "*", "kwargs", ")", ":", "txt", "=", "iframe_url", "(", "target", ",", "*", "*", "kwargs", ")", "display", "(", "HTML", "(", "txt", ")", ")" ]
Display the contents of a URL in an IPython notebook. :param target: the target url. :type target: string .. seealso:: `iframe_url()` for additional arguments.
[ "Display", "the", "contents", "of", "a", "URL", "in", "an", "IPython", "notebook", ".", ":", "param", "target", ":", "the", "target", "url", ".", ":", "type", "target", ":", "string" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L43-L52
sods/ods
pods/notebook.py
display_google_book
def display_google_book(id, page=None, width=700, height=500, **kwargs): """Display an embedded version of a Google book. :param id: the id of the google book to display. :type id: string :param page: the start page for the book. :type id: string or int.""" if isinstance(page, int): url ...
python
def display_google_book(id, page=None, width=700, height=500, **kwargs): """Display an embedded version of a Google book. :param id: the id of the google book to display. :type id: string :param page: the start page for the book. :type id: string or int.""" if isinstance(page, int): url ...
[ "def", "display_google_book", "(", "id", ",", "page", "=", "None", ",", "width", "=", "700", ",", "height", "=", "500", ",", "*", "*", "kwargs", ")", ":", "if", "isinstance", "(", "page", ",", "int", ")", ":", "url", "=", "'http://books.google.co.uk/bo...
Display an embedded version of a Google book. :param id: the id of the google book to display. :type id: string :param page: the start page for the book. :type id: string or int.
[ "Display", "an", "embedded", "version", "of", "a", "Google", "book", ".", ":", "param", "id", ":", "the", "id", "of", "the", "google", "book", "to", "display", ".", ":", "type", "id", ":", "string", ":", "param", "page", ":", "the", "start", "page", ...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L55-L65
sods/ods
pods/notebook.py
code_toggle
def code_toggle(start_show=False, message=None): """Toggling on and off code in a notebook. :param start_show: Whether to display the code or not on first load (default is False). :type start_show: bool :param message: the message used to toggle display of the code. :type message: string The t...
python
def code_toggle(start_show=False, message=None): """Toggling on and off code in a notebook. :param start_show: Whether to display the code or not on first load (default is False). :type start_show: bool :param message: the message used to toggle display of the code. :type message: string The t...
[ "def", "code_toggle", "(", "start_show", "=", "False", ",", "message", "=", "None", ")", ":", "html", "=", "'<script>\\n'", "if", "message", "is", "None", ":", "message", "=", "u'The raw code for this jupyter notebook can be hidden for easier reading.'", "if", "start_...
Toggling on and off code in a notebook. :param start_show: Whether to display the code or not on first load (default is False). :type start_show: bool :param message: the message used to toggle display of the code. :type message: string The tip that this idea is based on is from Damian Kao (ht...
[ "Toggling", "on", "and", "off", "code", "in", "a", "notebook", ".", ":", "param", "start_show", ":", "Whether", "to", "display", "the", "code", "or", "not", "on", "first", "load", "(", "default", "is", "False", ")", ".", ":", "type", "start_show", ":",...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L68-L98
sods/ods
pods/notebook.py
display_prediction
def display_prediction(basis, num_basis=4, wlim=(-1.,1.), fig=None, ax=None, xlim=None, ylim=None, num_points=1000, offset=0.0, **kwargs): """Interactive widget for displaying a prediction function based on summing separate basis functions. :param basis: a function handle that calls the basis functions. :ty...
python
def display_prediction(basis, num_basis=4, wlim=(-1.,1.), fig=None, ax=None, xlim=None, ylim=None, num_points=1000, offset=0.0, **kwargs): """Interactive widget for displaying a prediction function based on summing separate basis functions. :param basis: a function handle that calls the basis functions. :ty...
[ "def", "display_prediction", "(", "basis", ",", "num_basis", "=", "4", ",", "wlim", "=", "(", "-", "1.", ",", "1.", ")", ",", "fig", "=", "None", ",", "ax", "=", "None", ",", "xlim", "=", "None", ",", "ylim", "=", "None", ",", "num_points", "=", ...
Interactive widget for displaying a prediction function based on summing separate basis functions. :param basis: a function handle that calls the basis functions. :type basis: function handle. :param xlim: limits of the x axis to use. :param ylim: limits of the y axis to use. :param wlim: limits for...
[ "Interactive", "widget", "for", "displaying", "a", "prediction", "function", "based", "on", "summing", "separate", "basis", "functions", ".", ":", "param", "basis", ":", "a", "function", "handle", "that", "calls", "the", "basis", "functions", ".", ":", "type",...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L102-L195
sods/ods
pods/notebook.py
display_plots
def display_plots(filebase, directory=None, width=700, height=500, **kwargs): """Display a series of plots controlled by sliders. The function relies on Python string format functionality to index through a series of plots.""" def show_figure(filebase, directory, **kwargs): """Helper function to load in...
python
def display_plots(filebase, directory=None, width=700, height=500, **kwargs): """Display a series of plots controlled by sliders. The function relies on Python string format functionality to index through a series of plots.""" def show_figure(filebase, directory, **kwargs): """Helper function to load in...
[ "def", "display_plots", "(", "filebase", ",", "directory", "=", "None", ",", "width", "=", "700", ",", "height", "=", "500", ",", "*", "*", "kwargs", ")", ":", "def", "show_figure", "(", "filebase", ",", "directory", ",", "*", "*", "kwargs", ")", ":"...
Display a series of plots controlled by sliders. The function relies on Python string format functionality to index through a series of plots.
[ "Display", "a", "series", "of", "plots", "controlled", "by", "sliders", ".", "The", "function", "relies", "on", "Python", "string", "format", "functionality", "to", "index", "through", "a", "series", "of", "plots", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/notebook.py#L198-L207
sods/ods
pods/assesser.py
answer
def answer(part, module='mlai2014.json'): """Returns the answers to the lab classes.""" marks = json.load(open(os.path.join(data_directory, module), 'rb')) return marks['Lab ' + str(part+1)]
python
def answer(part, module='mlai2014.json'): """Returns the answers to the lab classes.""" marks = json.load(open(os.path.join(data_directory, module), 'rb')) return marks['Lab ' + str(part+1)]
[ "def", "answer", "(", "part", ",", "module", "=", "'mlai2014.json'", ")", ":", "marks", "=", "json", ".", "load", "(", "open", "(", "os", ".", "path", ".", "join", "(", "data_directory", ",", "module", ")", ",", "'rb'", ")", ")", "return", "marks", ...
Returns the answers to the lab classes.
[ "Returns", "the", "answers", "to", "the", "lab", "classes", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/assesser.py#L289-L292
sods/ods
pods/assesser.py
assessment.latex
def latex(self): """Gives a latex representation of the assessment.""" output = self.latex_preamble output += self._repr_latex_() output += self.latex_post return output
python
def latex(self): """Gives a latex representation of the assessment.""" output = self.latex_preamble output += self._repr_latex_() output += self.latex_post return output
[ "def", "latex", "(", "self", ")", ":", "output", "=", "self", ".", "latex_preamble", "output", "+=", "self", ".", "_repr_latex_", "(", ")", "output", "+=", "self", ".", "latex_post", "return", "output" ]
Gives a latex representation of the assessment.
[ "Gives", "a", "latex", "representation", "of", "the", "assessment", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/assesser.py#L145-L150
sods/ods
pods/assesser.py
assessment.html
def html(self): """Gives an html representation of the assessment.""" output = self.html_preamble output += self._repr_html_() output += self.html_post return output
python
def html(self): """Gives an html representation of the assessment.""" output = self.html_preamble output += self._repr_html_() output += self.html_post return output
[ "def", "html", "(", "self", ")", ":", "output", "=", "self", ".", "html_preamble", "output", "+=", "self", ".", "_repr_html_", "(", ")", "output", "+=", "self", ".", "html_post", "return", "output" ]
Gives an html representation of the assessment.
[ "Gives", "an", "html", "representation", "of", "the", "assessment", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/assesser.py#L152-L157
sods/ods
pods/assesser.py
assessment.marksheet
def marksheet(self): """Returns an pandas empty dataframe object containing rows and columns for marking. This can then be passed to a google doc that is distributed to markers for editing with the mark for each section.""" columns=['Number', 'Question', 'Correct (a fraction)', 'Max Mark', 'Comments'] ...
python
def marksheet(self): """Returns an pandas empty dataframe object containing rows and columns for marking. This can then be passed to a google doc that is distributed to markers for editing with the mark for each section.""" columns=['Number', 'Question', 'Correct (a fraction)', 'Max Mark', 'Comments'] ...
[ "def", "marksheet", "(", "self", ")", ":", "columns", "=", "[", "'Number'", ",", "'Question'", ",", "'Correct (a fraction)'", ",", "'Max Mark'", ",", "'Comments'", "]", "mark_sheet", "=", "pd", ".", "DataFrame", "(", ")", "for", "qu_number", ",", "question",...
Returns an pandas empty dataframe object containing rows and columns for marking. This can then be passed to a google doc that is distributed to markers for editing with the mark for each section.
[ "Returns", "an", "pandas", "empty", "dataframe", "object", "containing", "rows", "and", "columns", "for", "marking", ".", "This", "can", "then", "be", "passed", "to", "a", "google", "doc", "that", "is", "distributed", "to", "markers", "for", "editing", "with...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/assesser.py#L211-L228
sods/ods
pods/assesser.py
assessment.total_marks
def total_marks(self): """Compute the total mark for the assessment.""" total = 0 for answer in self.answers: for number, part in enumerate(answer): if number>0: if part[2]>0: total+=part[2] return total
python
def total_marks(self): """Compute the total mark for the assessment.""" total = 0 for answer in self.answers: for number, part in enumerate(answer): if number>0: if part[2]>0: total+=part[2] return total
[ "def", "total_marks", "(", "self", ")", ":", "total", "=", "0", "for", "answer", "in", "self", ".", "answers", ":", "for", "number", ",", "part", "in", "enumerate", "(", "answer", ")", ":", "if", "number", ">", "0", ":", "if", "part", "[", "2", "...
Compute the total mark for the assessment.
[ "Compute", "the", "total", "mark", "for", "the", "assessment", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/assesser.py#L230-L238
sods/ods
pods/lab.py
download
def download(name, course, github='SheffieldML/notebook/master/lab_classes/'): """Download a lab class from the relevant course :param course: the course short name to download the class from. :type course: string :param reference: reference to the course for downloading the class. :type reference: ...
python
def download(name, course, github='SheffieldML/notebook/master/lab_classes/'): """Download a lab class from the relevant course :param course: the course short name to download the class from. :type course: string :param reference: reference to the course for downloading the class. :type reference: ...
[ "def", "download", "(", "name", ",", "course", ",", "github", "=", "'SheffieldML/notebook/master/lab_classes/'", ")", ":", "github_stub", "=", "'https://raw.githubusercontent.com/'", "if", "not", "name", ".", "endswith", "(", "'.ipynb'", ")", ":", "name", "+=", "'...
Download a lab class from the relevant course :param course: the course short name to download the class from. :type course: string :param reference: reference to the course for downloading the class. :type reference: string :param github: github repo for downloading the course from. :type strin...
[ "Download", "a", "lab", "class", "from", "the", "relevant", "course", ":", "param", "course", ":", "the", "course", "short", "name", "to", "download", "the", "class", "from", ".", ":", "type", "course", ":", "string", ":", "param", "reference", ":", "ref...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/lab.py#L316-L329
rbuffat/pyepw
generator/templates/class.py
read
def read(self, vals): """ Read values Args: vals (list): list of strings representing values """ i = 0 {%- for field in fields %} {%- if field.is_list %} count = int(vals[i]) i += 1 for _ in range(count): obj = {{field....
python
def read(self, vals): """ Read values Args: vals (list): list of strings representing values """ i = 0 {%- for field in fields %} {%- if field.is_list %} count = int(vals[i]) i += 1 for _ in range(count): obj = {{field....
[ "def", "read", "(", "self", ",", "vals", ")", ":", "i", "=", "0", "{", "%", "-", "for", "field", "in", "fields", "%", "}", "{", "%", "-", "if", "field", ".", "is_list", "%", "}", "count", "=", "int", "(", "vals", "[", "i", "]", ")", "i", ...
Read values Args: vals (list): list of strings representing values
[ "Read", "values", "Args", ":", "vals", "(", "list", ")", ":", "list", "of", "strings", "representing", "values" ]
train
https://github.com/rbuffat/pyepw/blob/373d4d3c8386c8d35789f086ac5f6018c2711745/generator/templates/class.py#L18-L41
sods/ods
pods/datasets.py
permute
def permute(num): "Permutation for randomizing data order." if permute_data: return np.random.permutation(num) else: logging.warning("Warning not permuting data") return np.arange(num)
python
def permute(num): "Permutation for randomizing data order." if permute_data: return np.random.permutation(num) else: logging.warning("Warning not permuting data") return np.arange(num)
[ "def", "permute", "(", "num", ")", ":", "if", "permute_data", ":", "return", "np", ".", "random", ".", "permutation", "(", "num", ")", "else", ":", "logging", ".", "warning", "(", "\"Warning not permuting data\"", ")", "return", "np", ".", "arange", "(", ...
Permutation for randomizing data order.
[ "Permutation", "for", "randomizing", "data", "order", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L75-L81
sods/ods
pods/datasets.py
discrete
def discrete(cats, name='discrete'): """Return a class category that shows the encoding""" import json ks = list(cats) for key in ks: if isinstance(key, bytes): cats[key.decode('utf-8')] = cats.pop(key) return 'discrete(' + json.dumps([cats, name]) + ')'
python
def discrete(cats, name='discrete'): """Return a class category that shows the encoding""" import json ks = list(cats) for key in ks: if isinstance(key, bytes): cats[key.decode('utf-8')] = cats.pop(key) return 'discrete(' + json.dumps([cats, name]) + ')'
[ "def", "discrete", "(", "cats", ",", "name", "=", "'discrete'", ")", ":", "import", "json", "ks", "=", "list", "(", "cats", ")", "for", "key", "in", "ks", ":", "if", "isinstance", "(", "key", ",", "bytes", ")", ":", "cats", "[", "key", ".", "deco...
Return a class category that shows the encoding
[ "Return", "a", "class", "category", "that", "shows", "the", "encoding" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L92-L99
sods/ods
pods/datasets.py
prompt_stdin
def prompt_stdin(prompt): """Ask user for agreeing to data set licenses.""" # raw_input returns the empty string for "enter" yes = set(['yes', 'y']) no = set(['no','n']) try: print(prompt) if sys.version_info>=(3,0): choice = input().lower() else: cho...
python
def prompt_stdin(prompt): """Ask user for agreeing to data set licenses.""" # raw_input returns the empty string for "enter" yes = set(['yes', 'y']) no = set(['no','n']) try: print(prompt) if sys.version_info>=(3,0): choice = input().lower() else: cho...
[ "def", "prompt_stdin", "(", "prompt", ")", ":", "# raw_input returns the empty string for \"enter\"", "yes", "=", "set", "(", "[", "'yes'", ",", "'y'", "]", ")", "no", "=", "set", "(", "[", "'no'", ",", "'n'", "]", ")", "try", ":", "print", "(", "prompt"...
Ask user for agreeing to data set licenses.
[ "Ask", "user", "for", "agreeing", "to", "data", "set", "licenses", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L117-L144
sods/ods
pods/datasets.py
clear_cache
def clear_cache(dataset_name=None): """Remove a data set from the cache""" dr = data_resources[dataset_name] if 'dirs' in dr: for dirs, files in zip(dr['dirs'], dr['files']): for dir, file in zip(dirs, files): path = os.path.join(data_path, dataset_name, dir, file) ...
python
def clear_cache(dataset_name=None): """Remove a data set from the cache""" dr = data_resources[dataset_name] if 'dirs' in dr: for dirs, files in zip(dr['dirs'], dr['files']): for dir, file in zip(dirs, files): path = os.path.join(data_path, dataset_name, dir, file) ...
[ "def", "clear_cache", "(", "dataset_name", "=", "None", ")", ":", "dr", "=", "data_resources", "[", "dataset_name", "]", "if", "'dirs'", "in", "dr", ":", "for", "dirs", ",", "files", "in", "zip", "(", "dr", "[", "'dirs'", "]", ",", "dr", "[", "'files...
Remove a data set from the cache
[ "Remove", "a", "data", "set", "from", "the", "cache" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L147-L169
sods/ods
pods/datasets.py
data_available
def data_available(dataset_name=None): """Check if the data set is available on the local machine already.""" dr = data_resources[dataset_name] if 'dirs' in dr: for dirs, files in zip(dr['dirs'], dr['files']): for dir, file in zip(dirs, files): if not os.path.exists(os.pa...
python
def data_available(dataset_name=None): """Check if the data set is available on the local machine already.""" dr = data_resources[dataset_name] if 'dirs' in dr: for dirs, files in zip(dr['dirs'], dr['files']): for dir, file in zip(dirs, files): if not os.path.exists(os.pa...
[ "def", "data_available", "(", "dataset_name", "=", "None", ")", ":", "dr", "=", "data_resources", "[", "dataset_name", "]", "if", "'dirs'", "in", "dr", ":", "for", "dirs", ",", "files", "in", "zip", "(", "dr", "[", "'dirs'", "]", ",", "dr", "[", "'fi...
Check if the data set is available on the local machine already.
[ "Check", "if", "the", "data", "set", "is", "available", "on", "the", "local", "machine", "already", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L172-L185
sods/ods
pods/datasets.py
download_data
def download_data(dataset_name=None, prompt=prompt_stdin): """Check with the user that the are happy with terms and conditions for the data set, then download it.""" dr = data_resources[dataset_name] if not authorize_download(dataset_name, prompt=prompt): raise Exception("Permission to down...
python
def download_data(dataset_name=None, prompt=prompt_stdin): """Check with the user that the are happy with terms and conditions for the data set, then download it.""" dr = data_resources[dataset_name] if not authorize_download(dataset_name, prompt=prompt): raise Exception("Permission to down...
[ "def", "download_data", "(", "dataset_name", "=", "None", ",", "prompt", "=", "prompt_stdin", ")", ":", "dr", "=", "data_resources", "[", "dataset_name", "]", "if", "not", "authorize_download", "(", "dataset_name", ",", "prompt", "=", "prompt", ")", ":", "ra...
Check with the user that the are happy with terms and conditions for the data set, then download it.
[ "Check", "with", "the", "user", "that", "the", "are", "happy", "with", "terms", "and", "conditions", "for", "the", "data", "set", "then", "download", "it", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L220-L251
sods/ods
pods/datasets.py
df2arff
def df2arff(df, dataset_name, pods_data): """Write an arff file from a data set loaded in from pods""" def java_simple_date(date_format): date_format = date_format.replace('%Y', 'yyyy').replace('%m', 'MM').replace('%d', 'dd').replace('%H', 'HH') return date_format.replace('%h', 'hh').replace('%M...
python
def df2arff(df, dataset_name, pods_data): """Write an arff file from a data set loaded in from pods""" def java_simple_date(date_format): date_format = date_format.replace('%Y', 'yyyy').replace('%m', 'MM').replace('%d', 'dd').replace('%H', 'HH') return date_format.replace('%h', 'hh').replace('%M...
[ "def", "df2arff", "(", "df", ",", "dataset_name", ",", "pods_data", ")", ":", "def", "java_simple_date", "(", "date_format", ")", ":", "date_format", "=", "date_format", ".", "replace", "(", "'%Y'", ",", "'yyyy'", ")", ".", "replace", "(", "'%m'", ",", "...
Write an arff file from a data set loaded in from pods
[ "Write", "an", "arff", "file", "from", "a", "data", "set", "loaded", "in", "from", "pods" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L259-L371
sods/ods
pods/datasets.py
to_arff
def to_arff(dataset, **kwargs): """Take a pods data set and write it as an ARFF file""" pods_data = dataset(**kwargs) vals = list(kwargs.values()) for i, v in enumerate(vals): if isinstance(v, list): vals[i] = '|'.join(v) else: vals[i] = str(v) args = '_'.join...
python
def to_arff(dataset, **kwargs): """Take a pods data set and write it as an ARFF file""" pods_data = dataset(**kwargs) vals = list(kwargs.values()) for i, v in enumerate(vals): if isinstance(v, list): vals[i] = '|'.join(v) else: vals[i] = str(v) args = '_'.join...
[ "def", "to_arff", "(", "dataset", ",", "*", "*", "kwargs", ")", ":", "pods_data", "=", "dataset", "(", "*", "*", "kwargs", ")", "vals", "=", "list", "(", "kwargs", ".", "values", "(", ")", ")", "for", "i", ",", "v", "in", "enumerate", "(", "vals"...
Take a pods data set and write it as an ARFF file
[ "Take", "a", "pods", "data", "set", "and", "write", "it", "as", "an", "ARFF", "file" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L373-L413
sods/ods
pods/datasets.py
epomeo_gpx
def epomeo_gpx(data_set='epomeo_gpx', sample_every=4): """Data set of three GPS traces of the same movement on Mt Epomeo in Ischia. Requires gpxpy to run.""" import gpxpy import gpxpy.gpx if not data_available(data_set): download_data(data_set) files = ['endomondo_1', 'endomondo_2', 'garmin_...
python
def epomeo_gpx(data_set='epomeo_gpx', sample_every=4): """Data set of three GPS traces of the same movement on Mt Epomeo in Ischia. Requires gpxpy to run.""" import gpxpy import gpxpy.gpx if not data_available(data_set): download_data(data_set) files = ['endomondo_1', 'endomondo_2', 'garmin_...
[ "def", "epomeo_gpx", "(", "data_set", "=", "'epomeo_gpx'", ",", "sample_every", "=", "4", ")", ":", "import", "gpxpy", "import", "gpxpy", ".", "gpx", "if", "not", "data_available", "(", "data_set", ")", ":", "download_data", "(", "data_set", ")", "files", ...
Data set of three GPS traces of the same movement on Mt Epomeo in Ischia. Requires gpxpy to run.
[ "Data", "set", "of", "three", "GPS", "traces", "of", "the", "same", "movement", "on", "Mt", "Epomeo", "in", "Ischia", ".", "Requires", "gpxpy", "to", "run", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L519-L540
sods/ods
pods/datasets.py
pmlr
def pmlr(volumes='all', data_set='pmlr'): """Abstracts from the Proceedings of Machine Learning Research""" if not data_available(data_set): download_data(data_set) proceedings_file = open(os.path.join(data_path, data_set, 'proceedings.yaml'), 'r') import yaml proceedings = yaml.loa...
python
def pmlr(volumes='all', data_set='pmlr'): """Abstracts from the Proceedings of Machine Learning Research""" if not data_available(data_set): download_data(data_set) proceedings_file = open(os.path.join(data_path, data_set, 'proceedings.yaml'), 'r') import yaml proceedings = yaml.loa...
[ "def", "pmlr", "(", "volumes", "=", "'all'", ",", "data_set", "=", "'pmlr'", ")", ":", "if", "not", "data_available", "(", "data_set", ")", ":", "download_data", "(", "data_set", ")", "proceedings_file", "=", "open", "(", "os", ".", "path", ".", "join", ...
Abstracts from the Proceedings of Machine Learning Research
[ "Abstracts", "from", "the", "Proceedings", "of", "Machine", "Learning", "Research" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L542-L590
sods/ods
pods/datasets.py
football_data
def football_data(season='1617', data_set='football_data'): """Football data from English games since 1993. This downloads data from football-data.co.uk for the given season. """ league_dict = {'E0':0, 'E1':1, 'E2': 2, 'E3': 3, 'EC':4} def league2num(string): if isinstance(string, bytes): ...
python
def football_data(season='1617', data_set='football_data'): """Football data from English games since 1993. This downloads data from football-data.co.uk for the given season. """ league_dict = {'E0':0, 'E1':1, 'E2': 2, 'E3': 3, 'EC':4} def league2num(string): if isinstance(string, bytes): ...
[ "def", "football_data", "(", "season", "=", "'1617'", ",", "data_set", "=", "'football_data'", ")", ":", "league_dict", "=", "{", "'E0'", ":", "0", ",", "'E1'", ":", "1", ",", "'E2'", ":", "2", ",", "'E3'", ":", "3", ",", "'EC'", ":", "4", "}", "...
Football data from English games since 1993. This downloads data from football-data.co.uk for the given season.
[ "Football", "data", "from", "English", "games", "since", "1993", ".", "This", "downloads", "data", "from", "football", "-", "data", ".", "co", ".", "uk", "for", "the", "given", "season", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L593-L646
sods/ods
pods/datasets.py
lee_yeast_ChIP
def lee_yeast_ChIP(data_set='lee_yeast_ChIP'): """Yeast ChIP data from Lee et al.""" if not data_available(data_set): download_data(data_set) from pandas import read_csv dir_path = os.path.join(data_path, data_set) filename = os.path.join(dir_path, 'binding_by_gene.tsv') S = read_csv(fil...
python
def lee_yeast_ChIP(data_set='lee_yeast_ChIP'): """Yeast ChIP data from Lee et al.""" if not data_available(data_set): download_data(data_set) from pandas import read_csv dir_path = os.path.join(data_path, data_set) filename = os.path.join(dir_path, 'binding_by_gene.tsv') S = read_csv(fil...
[ "def", "lee_yeast_ChIP", "(", "data_set", "=", "'lee_yeast_ChIP'", ")", ":", "if", "not", "data_available", "(", "data_set", ")", ":", "download_data", "(", "data_set", ")", "from", "pandas", "import", "read_csv", "dir_path", "=", "os", ".", "path", ".", "jo...
Yeast ChIP data from Lee et al.
[ "Yeast", "ChIP", "data", "from", "Lee", "et", "al", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L684-L695
sods/ods
pods/datasets.py
google_trends
def google_trends(query_terms=['big data', 'machine learning', 'data science'], data_set='google_trends', refresh_data=False): """ Data downloaded from Google trends for given query terms. Warning, if you use this function multiple times in a row you get blocked due to terms of service violations. ...
python
def google_trends(query_terms=['big data', 'machine learning', 'data science'], data_set='google_trends', refresh_data=False): """ Data downloaded from Google trends for given query terms. Warning, if you use this function multiple times in a row you get blocked due to terms of service violations. ...
[ "def", "google_trends", "(", "query_terms", "=", "[", "'big data'", ",", "'machine learning'", ",", "'data science'", "]", ",", "data_set", "=", "'google_trends'", ",", "refresh_data", "=", "False", ")", ":", "query_terms", ".", "sort", "(", ")", "import", "pa...
Data downloaded from Google trends for given query terms. Warning, if you use this function multiple times in a row you get blocked due to terms of service violations. The function will cache the result of any query in an attempt to avoid this. If you wish to refresh an old query set refresh_data t...
[ "Data", "downloaded", "from", "Google", "trends", "for", "given", "query", "terms", ".", "Warning", "if", "you", "use", "this", "function", "multiple", "times", "in", "a", "row", "you", "get", "blocked", "due", "to", "terms", "of", "service", "violations", ...
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L750-L817
sods/ods
pods/datasets.py
osu_run1
def osu_run1(data_set='osu_run1', sample_every=4): """Ohio State University's Run1 motion capture data set.""" path = os.path.join(data_path, data_set) if not data_available(data_set): import zipfile download_data(data_set) zip = zipfile.ZipFile(os.path.join(data_path, data_set, 'run...
python
def osu_run1(data_set='osu_run1', sample_every=4): """Ohio State University's Run1 motion capture data set.""" path = os.path.join(data_path, data_set) if not data_available(data_set): import zipfile download_data(data_set) zip = zipfile.ZipFile(os.path.join(data_path, data_set, 'run...
[ "def", "osu_run1", "(", "data_set", "=", "'osu_run1'", ",", "sample_every", "=", "4", ")", ":", "path", "=", "os", ".", "path", ".", "join", "(", "data_path", ",", "data_set", ")", "if", "not", "data_available", "(", "data_set", ")", ":", "import", "zi...
Ohio State University's Run1 motion capture data set.
[ "Ohio", "State", "University", "s", "Run1", "motion", "capture", "data", "set", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L1009-L1021
sods/ods
pods/datasets.py
toy_linear_1d_classification
def toy_linear_1d_classification(seed=default_seed): """Simple classification data in one dimension for illustrating models.""" def sample_class(f): p = 1. / (1. + np.exp(-f)) c = np.random.binomial(1, p) c = np.where(c, 1, -1) return c np.random.seed(seed=seed) x1 = np....
python
def toy_linear_1d_classification(seed=default_seed): """Simple classification data in one dimension for illustrating models.""" def sample_class(f): p = 1. / (1. + np.exp(-f)) c = np.random.binomial(1, p) c = np.where(c, 1, -1) return c np.random.seed(seed=seed) x1 = np....
[ "def", "toy_linear_1d_classification", "(", "seed", "=", "default_seed", ")", ":", "def", "sample_class", "(", "f", ")", ":", "p", "=", "1.", "/", "(", "1.", "+", "np", ".", "exp", "(", "-", "f", ")", ")", "c", "=", "np", ".", "random", ".", "bin...
Simple classification data in one dimension for illustrating models.
[ "Simple", "classification", "data", "in", "one", "dimension", "for", "illustrating", "models", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L1108-L1120
sods/ods
pods/datasets.py
airline_delay
def airline_delay(data_set='airline_delay', num_train=700000, num_test=100000, seed=default_seed): """Airline delay data used in Gaussian Processes for Big Data by Hensman, Fusi and Lawrence""" if not data_available(data_set): download_data(data_set) dir_path = os.path.join(data_path, data_set) ...
python
def airline_delay(data_set='airline_delay', num_train=700000, num_test=100000, seed=default_seed): """Airline delay data used in Gaussian Processes for Big Data by Hensman, Fusi and Lawrence""" if not data_available(data_set): download_data(data_set) dir_path = os.path.join(data_path, data_set) ...
[ "def", "airline_delay", "(", "data_set", "=", "'airline_delay'", ",", "num_train", "=", "700000", ",", "num_test", "=", "100000", ",", "seed", "=", "default_seed", ")", ":", "if", "not", "data_available", "(", "data_set", ")", ":", "download_data", "(", "dat...
Airline delay data used in Gaussian Processes for Big Data by Hensman, Fusi and Lawrence
[ "Airline", "delay", "data", "used", "in", "Gaussian", "Processes", "for", "Big", "Data", "by", "Hensman", "Fusi", "and", "Lawrence" ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L1122-L1155
sods/ods
pods/datasets.py
olympic_sprints
def olympic_sprints(data_set='rogers_girolami_data'): """All olympics sprint winning times for multiple output prediction.""" X = np.zeros((0, 2)) Y = np.zeros((0, 1)) cats = {} for i, dataset in enumerate([olympic_100m_men, olympic_100m_women, ...
python
def olympic_sprints(data_set='rogers_girolami_data'): """All olympics sprint winning times for multiple output prediction.""" X = np.zeros((0, 2)) Y = np.zeros((0, 1)) cats = {} for i, dataset in enumerate([olympic_100m_men, olympic_100m_women, ...
[ "def", "olympic_sprints", "(", "data_set", "=", "'rogers_girolami_data'", ")", ":", "X", "=", "np", ".", "zeros", "(", "(", "0", ",", "2", ")", ")", "Y", "=", "np", ".", "zeros", "(", "(", "0", ",", "1", ")", ")", "cats", "=", "{", "}", "for", ...
All olympics sprint winning times for multiple output prediction.
[ "All", "olympics", "sprint", "winning", "times", "for", "multiple", "output", "prediction", "." ]
train
https://github.com/sods/ods/blob/3995c659f25a0a640f6009ed7fcc2559ce659b1d/pods/datasets.py#L1271-L1304