[BUGFIX] Fix labeled components if initialized
This commit is contained in:
parent
47d7f5831f
commit
aaad2b8626
@ -118,7 +118,7 @@ class LabeledComponents(Components):
|
|||||||
components, component_labels = parse_data_arg(
|
components, component_labels = parse_data_arg(
|
||||||
initialized_components)
|
initialized_components)
|
||||||
super().__init__(initialized_components=components)
|
super().__init__(initialized_components=components)
|
||||||
self._labels = component_labels
|
self._register_labels(component_labels)
|
||||||
else:
|
else:
|
||||||
labels = get_labels_object(distribution)
|
labels = get_labels_object(distribution)
|
||||||
self.initial_distribution = labels.distribution
|
self.initial_distribution = labels.distribution
|
||||||
|
Loading…
Reference in New Issue
Block a user