docs: def _check_values(self, values):
          """Check values whenever they come through the values setter."""
          assert isinstance(values, Iterable) and not isinstance(
              values, (str, dict, bytes, bytearray)), \
              'values should be a list or tuple. Got {}'.format(type(values))
          if self.header.analysis_period.is_annual:
              a_period_len = 8760 * self.header.analysis_period.timestep
              if self.header.analysis_period.is_leap_year is True:
                  a_period_len = a_period_len + 24 * self.header.analysis_period.timestep
          else:
              a_period_len = len(self.header.analysis_period.moys)
          assert len(values) == a_period_len, \
              'Length of values does not match that expected by the '\
              'header analysis_period. {} != {}'.format(len(values), a_period_len)