Commit de498f16 authored by Médéric Boquien's avatar Médéric Boquien

Save the model id rather than the index within the block as this would give an...

Save the model id rather than the index within the block as this would give an incorrect id when using more than one block.
parent 8b764157
...@@ -81,7 +81,7 @@ class ModelsManager(object): ...@@ -81,7 +81,7 @@ class ModelsManager(object):
table = Table(np.vstack((self.fluxes, self.properties)).T, table = Table(np.vstack((self.fluxes, self.properties)).T,
names=self.obs.bands + self.propertiesnames) names=self.obs.bands + self.propertiesnames)
table.add_column(Column(np.arange(len(table)), name='id'), index=0) table.add_column(Column(self.block, name='id'), index=0)
table.write("out/{}.fits".format(filename)) table.write("out/{}.fits".format(filename))
table.write("out/{}.txt".format(filename), format='ascii.fixed_width', table.write("out/{}.txt".format(filename), format='ascii.fixed_width',
......
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