Commit cfe7bd96 authored by  Hector Salas's avatar Hector Salas

Add properties to generate_mock function in observations.py

parent a96085ca
......@@ -234,10 +234,10 @@ class ObservationsManagerPassbands(object):
Best fit fluxes of a previous run.
"""
for idx, band in enumerate(self.bands):
banderr = band + '_err'
self.table[band] = np.random.normal(fits.best.fluxes[:, idx],
np.fabs(self.table[banderr]))
for idx, item in enumerate(self.tofit):
err = item + '_err'
self.table[item] = np.random.normal(fits.best.fluxes[:, idx],
np.fabs(self.table[err]))
def save(self, filename):
"""Saves the observations as seen internally by the code so it is easy
......
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