diff --git a/surfa/core/labels.py b/surfa/core/labels.py index 81a53a6..442f313 100644 --- a/surfa/core/labels.py +++ b/surfa/core/labels.py @@ -243,7 +243,7 @@ def extract(self, labels): elt = self.get(label) if elt is None: raise ValueError(f'index {label} does not exist in the LabelLookup') - lookup.add(label, elt.name, elt.color) + lookup[label]= (elt.name, elt.color) return lookup def copy_colors(self, lookup):