Skip to content

Commit a86f2a5

Browse files
authored
Merge pull request #38 from jnolan14/master
Fixed bug in LabelLookup.extract
2 parents 1366829 + 92b7539 commit a86f2a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfa/core/labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def extract(self, labels):
243243
elt = self.get(label)
244244
if elt is None:
245245
raise ValueError(f'index {label} does not exist in the LabelLookup')
246-
lookup.add(label, elt.name, elt.color)
246+
lookup[label]= (elt.name, elt.color)
247247
return lookup
248248

249249
def copy_colors(self, lookup):

0 commit comments

Comments
 (0)