def _check_values(self, values):
assert isinstance(values, Iterable) and not isinstance(<EOL>values, (str, dict, bytes, bytearray)),'<STR_LIT>'.format(type(values))<EOL>if self.header.analysis_period.is_annual:<EOL><INDENT>a_period_len = <NUM_LIT> * self.header.analysis_period.timestep<EOL>if self.header.analysis_period.is_leap_year is True:<EOL><INDENT>a_period_len = a_period_len + <NUM_LIT> * self.header.analysis_period.timestep<EOL><DEDENT><DEDENT>else:<EOL><INDENT>a_period_len = len(self.header.analysis_period.moys)<EOL><DEDENT>assert len(values) == a_period_len,'<STR_LIT>''<STR_LIT>'.format(len(values), a_period_len)<EOL>
Check values whenever they come through the values setter.