Skip to content
Snippets Groups Projects
Commit ab350bfc authored by Hao Gao's avatar Hao Gao
Browse files

backward compatiblility

parent d7f73c7d
No related branches found
No related tags found
1 merge request!33Make list compression arg a list instead of a bool
...@@ -822,6 +822,13 @@ class ListOfListsBuilder: ...@@ -822,6 +822,13 @@ class ListOfListsBuilder:
self.complex_kernel = complex_kernel self.complex_kernel = complex_kernel
if eliminate_empty_output_lists is True:
eliminate_empty_output_lists = \
[name for name, _ in self.list_names_and_dtypes]
if eliminate_empty_output_lists is False:
eliminate_empty_output_lists = []
self.eliminate_empty_output_lists = eliminate_empty_output_lists self.eliminate_empty_output_lists = eliminate_empty_output_lists
for list_name in self.eliminate_empty_output_lists: for list_name in self.eliminate_empty_output_lists:
if not any(list_name == name for name, _ in self.list_names_and_dtypes): if not any(list_name == name for name, _ in self.list_names_and_dtypes):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment