Commit 000e9d93 authored by Médéric Boquien's avatar Médéric Boquien

No need to add the names of the properties as an attribute as they are note...

No need to add the names of the properties as an attribute as they are note used out of the constructor.
parent fca6ab18
......@@ -30,9 +30,9 @@ class BayesResultsManager(object):
def __init__(self, models):
nobs = len(models.obs)
self.propertiesnames = models.propertiesnames
self.extpropnames = models.massproportional.\
extpropnames = models.massproportional.\
intersection(models.propertiesnames)
self.intpropnames = set(models.propertiesnames) - self.extpropnames
intpropnames = set(models.propertiesnames) - extpropnames
self.nproperties = len(models.propertiesnames)
# Arrays where we store the data related to the models. For memory
......@@ -40,10 +40,10 @@ class BayesResultsManager(object):
# to the pool. Each worker will fill a part of the RawArrays. It is
# important that there is no conflict and that two different workers do
# not write on the same section.
self.intmean = {prop: SharedArray(nobs) for prop in self.intpropnames}
self.interror = {prop: SharedArray(nobs) for prop in self.intpropnames}
self.extmean = {prop: SharedArray(nobs) for prop in self.extpropnames}
self.exterror = {prop: SharedArray(nobs) for prop in self.extpropnames}
self.intmean = {prop: SharedArray(nobs) for prop in intpropnames}
self.interror = {prop: SharedArray(nobs) for prop in intpropnames}
self.extmean = {prop: SharedArray(nobs) for prop in extpropnames}
self.exterror = {prop: SharedArray(nobs) for prop in extpropnames}
self.weight = SharedArray(nobs)
@property
......
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