Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
Fixed the import and call to kvlReadCompressionLookupTable, was previously pointing to gems, but the functionality appears to have been moved to samseg.io
  • Loading branch information
jnolan14 authored Jul 9, 2024
1 parent ccafc44 commit e24857b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samseg/subregions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import scipy.ndimage
import numpy as np
import surfa as sf
from samseg import gems
from samseg.io import kvlReadCompressionLookupTable


def run(cmd):
Expand Down Expand Up @@ -36,7 +36,7 @@ def read_compression_lookup_table(filename):
object down the road.
"""
labelMapping = sf.LabelLookup()
labels, names, colors = gems.kvlReadCompressionLookupTable(filename)
labels, names, colors = kvlReadCompressionLookupTable(filename)
labels = np.array(labels)
for label, name, color in zip(labels, names, colors):
labelMapping[label] = (name, color)
Expand Down

0 comments on commit e24857b

Please sign in to comment.