From e24857bea69b4c986488c8a9845d4b1d09c78a04 Mon Sep 17 00:00:00 2001 From: Jackson Nolan <77302298+jnolan14@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:51:42 -0400 Subject: [PATCH] Update utils.py Fixed the import and call to kvlReadCompressionLookupTable, was previously pointing to gems, but the functionality appears to have been moved to samseg.io --- samseg/subregions/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samseg/subregions/utils.py b/samseg/subregions/utils.py index 555ebeb..04e006c 100644 --- a/samseg/subregions/utils.py +++ b/samseg/subregions/utils.py @@ -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): @@ -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)