Skip to content
Snippets Groups Projects

Fix reading of patchless sky models with Astropy < 4.1 (fixes #29)

Merged Tammo Jan Dijkema requested to merge fix_read into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -188,7 +188,8 @@ def createTable(outlines, metaDict, colNames, colDefaults):
# Use the input column names for the converters
nameCol = 'col{0}'.format(colNames.index('Name')+1)
typeCol = 'col{0}'.format(colNames.index('Type')+1)
patchCol = 'col{0}'.format(colNames.index('Patch')+1)
if 'Patch' in colNames:
patchCol = 'col{0}'.format(colNames.index('Patch')+1)
else:
# Use the output column names for the converters
nameCol = 'Name'
Loading