Skip to content

Commit

Permalink
Skip vector columns in FITS tables
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Mar 30, 2016
1 parent 931c1c7 commit 51ceb84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions glue/core/data_factories/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51ceb84

Please sign in to comment.