@classmethod<EOL><INDENT>def from_values(cls, location, direct_normal_irradiance,<EOL>diffuse_horizontal_irradiance, timestep=<NUM_LIT:1>, is_leap_year=False):<DEDENT>
err_message = '<STR_LIT>''<STR_LIT>'<EOL>if len(direct_normal_irradiance) % cls.hour_count(is_leap_year) == <NUM_LIT:0>:<EOL><INDENT>err_message = err_message + '<STR_LIT>'% (len(direct_normal_irradiance) / cls.hour_count(is_leap_year))<EOL><DEDENT>assert len(direct_normal_irradiance) /timestep == cls.hour_count(is_leap_year),err_message % (timestep, timestep * cls.hour_count(is_leap_year),<EOL>'<STR_LIT>', len(<EOL>direct_normal_irradiance))<EOL>assert len(diffuse_horizontal_irradiance) / timestep ==cls.hour_count(is_leap_year),err_message % (timestep, timestep * cls.hour_count(is_leap_year),<EOL>'<STR_LIT>', len(<EOL>direct_normal_irradiance))<EOL>metadata = {'<STR_LIT:source>': location.source, '<STR_LIT>': location.country,<EOL>'<STR_LIT>': location.city}<EOL>dnr, dhr = cls._get_data_collections(<EOL>direct_normal_irradiance, diffuse_horizontal_irradiance,<EOL>metadata, timestep, is_leap_year)<EOL>return cls(location, dnr, dhr, timestep, is_leap_year)<EOL>
Create wea from a list of irradiance values.

        This method converts input lists to data collection.