Skip to content
Snippets Groups Projects
Commit cebf7e6f authored by David Rafferty's avatar David Rafferty
Browse files

Fix units on existing columns

parent 21162bdb
No related branches found
No related tags found
No related merge requests found
...@@ -924,7 +924,9 @@ class SkyModel(object): ...@@ -924,7 +924,9 @@ class SkyModel(object):
else: else:
data = np.array(data) data = np.array(data)
if colName in self.table.keys(): if colName in self.table.keys():
units = self.table.columns[colName].unit
self.table[colName] = data self.table[colName] = data
self.table.columns[colName].unit = units
else: else:
if colName == 'Patch': if colName == 'Patch':
# Specify length of 50 characters # Specify length of 50 characters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment