Skip to content

Commit

Permalink
Merge pull request #38 from jnolan14/master
Browse files Browse the repository at this point in the history
Fixed bug in LabelLookup.extract
  • Loading branch information
jnolan14 authored Sep 4, 2024
2 parents 1366829 + 92b7539 commit a86f2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfa/core/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a86f2a5

Please sign in to comment.