Commit e9b4b8d3 authored by  Hector Salas's avatar Hector Salas

Fix bug in generate_mock function in observations.py

parent 39abefdf
...@@ -241,11 +241,13 @@ class ObservationsManagerPassbands(object): ...@@ -241,11 +241,13 @@ class ObservationsManagerPassbands(object):
np.fabs(self.table[err])) np.fabs(self.table[err]))
for idx, prop in enumerate(self.intprops): for idx, prop in enumerate(self.intprops):
err = prop + '_err' err = prop + '_err'
self.table[prop] = np.random.normal(fits.best.intprops[:, idx], index = fits.best.propertiesnames.index(prop)
self.table[prop] = np.random.normal(fits.best.properties[:, index],
np.fabs(self.table[err])) np.fabs(self.table[err]))
for idx, prop in enumerate(self.extprops): for idx, prop in enumerate(self.extprops):
err = prop + '_err' err = prop + '_err'
self.table[prop] = np.random.normal(fits.best.extprops[:, idx], index = fits.best.propertiesnames.index(prop)
self.table[prop] = np.random.normal(fits.best.properties[:, index],
np.fabs(self.table[err])) np.fabs(self.table[err]))
def save(self, filename): 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