Commit 71574451 authored by Hector Salas's avatar Hector Salas
Browse files

Modify _add_model_error in to include only extensive properties, fix spelling error

parent f3dfed54
......@@ -147,7 +147,7 @@ class ObservationsManagerPassbands(object):
error = item + '_err'
if item in self.intprops:
if error not in self.intprops_err or error not in self.table.colnames:
raise ValueError("Instensive properties errors must be in input file.")
raise ValueError("Intensive properties errors must be in input file.")
elif error not in self.tofit_err or error not in self.table.colnames:
colerr = Column(data=np.fabs(self.table[item] * defaulterror),
......@@ -215,7 +215,7 @@ class ObservationsManagerPassbands(object):
if modelerror < 0.:
raise ValueError("The relative model error must be positive.")
for item in self.tofit:
for item in self.bands + self.extprops:
error = item + '_err'
w = np.where(self.table[error] >= 0.)
self.table[error][w] = np.sqrt(self.table[error][w]**2. + (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment