Commit 4860266f authored by Médéric Boquien's avatar Médéric Boquien

Setters and getters for the flux, extprop, and intprop dictionaries are too...

Setters and getters for the flux, extprop, and intprop dictionaries are too expensive, in particular as they do not provide any real safety in the present case.
parent 25483cf0
......@@ -43,37 +43,6 @@ class ModelsManager(object):
self.intprop = {prop: SharedArray(size) for prop in self.intpropnames}
self.extprop = {prop: SharedArray(size) for prop in self.extpropnames}
@property
def flux(self):
"""Returns a shared array containing the fluxes of the models.
"""
return self._flux
@flux.setter
def flux(self, flux):
self._flux = flux
@property
def intprop(self):
"""Returns a shared array containing the intensive properties to fit.
"""
return self._intprop
@intprop.setter
def intprop(self, intprop):
self._intprop = intprop
@property
def extprop(self):
"""Returns a shared array containing the extensive properties to fit.
"""
return self._extprop
@extprop.setter
def extprop(self, extprop):
self._extprop = extprop
def save(self, filename):
"""Save the fluxes and properties of all the models into a table.
......
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