diff --git a/navis/io/precomputed_io.py b/navis/io/precomputed_io.py index b37c7e58..16ba36c2 100644 --- a/navis/io/precomputed_io.py +++ b/navis/io/precomputed_io.py @@ -151,6 +151,10 @@ def read_buffer( swc = self.make_swc(nodes, edges) + # Check for malformed vertex attributes (should be list of dicts) + if isinstance(self.info.get('vertex_attributes', None), dict): + self.info['vertex_attributes'] = [self.info['vertex_attributes']] + # Parse additional vertex attributes if specified as per the info file for attr in self.info.get('vertex_attributes', []): dtype = np.dtype(attr['data_type'])