def load_tsa_raw(self, datestring, timedelta=0): """ read data from raw input files and return TimeseriesArrayLazy object parameters: datestring <str> isodate representation of date like 2015-12-31 timedelta <int> amount second to correct raw input timestamps returns: <TimeseriesArrayLazy> object wich holds all data of this day """ tsa = TimeseriesArrayLazy(self.__index_keynames, self.__value_keynames, datatypes=self.__datatypes) for rowdict in self.__get_raw_data_dict(datestring, timedelta): try: tsa.add(rowdict) except ValueError as exc: logging.exception(exc) logging.error("ValueError by adding this data to TimeseriesArrayLazy: %s", rowdict) raise exc except AssertionError as exc: logging.exception(exc) logging.error("AssertionError by adding this data to TimeseriesArrayLazy: %s", rowdict) raise exc return tsa