nicolay-r/AREkit

`init_empty` -- list of columns might be not-empty

nicolay-r opened this issue · 0 comments

Solution: There is a need to clean the list of columns before.

def init_empty(self, columns_provider):
assert (isinstance(columns_provider, BaseColumnsProvider))
for col_name, _ in columns_provider.get_columns_list_with_types():
self.__columns.append(col_name)
# Expand with columns that are forced to be provided.
existed_set = set(self.__columns)
self.__columns += [c for c in self.__force_collect_columns if c not in existed_set]