def _load_compiled_aggregations(self) -> None: for path_object in self._path_compiled_aggregations.iterdir(): if path_object.is_dir(): continue aggr_id = path_object.name if aggr_id in self._compiled_aggregations: continue self._logger.debug("Loading cached aggregation results %s" % aggr_id) aggr_data = self._marshal_load_data(str(path_object)) self._compiled_aggregations[aggr_id] = BIAggregation.create_trees_from_schema(aggr_data)
def _load_compiled_aggregations(self) -> None: for path_object in self._path_compiled_aggregations.iterdir(): aggr_id = path_object.name if aggr_id in self._compiled_aggregations: continue self._logger.debug("Loading cached aggregation results %s" % aggr_id) aggr_data = ast.literal_eval(path_object.read_text()) self._compiled_aggregations[ aggr_id] = BIAggregation.create_trees_from_schema(aggr_data)