From 51ceb84d04f894012feb3743c8bb45d5847341c2 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 24 Mar 2016 10:25:46 -0700 Subject: [PATCH] Skip vector columns in FITS tables --- glue/core/data_factories/fits.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glue/core/data_factories/fits.py b/glue/core/data_factories/fits.py index 7aecc819a..c2bee86d5 100644 --- a/glue/core/data_factories/fits.py +++ b/glue/core/data_factories/fits.py @@ -116,6 +116,9 @@ def new_data(): groups[hdu_name] = data for column_name in table.columns: column = table[column_name] + if column.ndim != 1: + warnings.warn("Dropping column '{0}' since it is not 1-dimensional".format(column_name)) + continue component = Component(column, units=column.unit) data.add_component(component=component, label=column_name)