Commit fda2ce6e authored by  Hector Salas's avatar Hector Salas

Modify generate_mock function in observations.py to correctly include properties to fit

parent 8efe6ba5
......@@ -235,9 +235,17 @@ class ObservationsManagerPassbands(object):
Best fit fluxes of a previous run.
"""
for idx, item in enumerate(self.tofit):
err = item + '_err'
self.table[item] = np.random.normal(fits.best.fluxes[:, idx],
for idx, band in enumerate(self.bands):
err = band + '_err'
self.table[band] = np.random.normal(fits.best.fluxes[:, idx],
np.fabs(self.table[err]))
for idx, prop in enumerate(self.intprops):
err = prop + '_err'
self.table[prop] = np.random.normal(fits.best.intprops[:, idx],
np.fabs(self.table[err]))
for idx, prop in enumerate(self.extprops):
err = prop + '_err'
self.table[prop] = np.random.normal(fits.best.extprops[:, idx],
np.fabs(self.table[err]))
def save(self, filename):
......
Markdown is supported
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