[BUGFIX] Fix labeled components if initialized

This commit is contained in:
Alexander Engelsberger 2021-06-11 16:09:51 +02:00
parent 47d7f5831f
commit aaad2b8626
No known key found for this signature in database
GPG Key ID: BE3F5909FF0D83E3

View File

@ -118,7 +118,7 @@ class LabeledComponents(Components):
components, component_labels = parse_data_arg(
initialized_components)
super().__init__(initialized_components=components)
self._labels = component_labels
self._register_labels(component_labels)
else:
labels = get_labels_object(distribution)
self.initial_distribution = labels.distribution