removing unnecessary code
This commit is contained in:
parent
a4c7e61e1a
commit
37ed561f73
@ -382,24 +382,16 @@ class PDFstatistics(object):
|
||||
def getQD(self,value):
|
||||
QDlist = []
|
||||
for pdf in self:
|
||||
try:
|
||||
QD = pdf.quantile_distance(value)
|
||||
QDlist.append(QD)
|
||||
except AttributeError as e:
|
||||
if e.message == "'float' object has no attribute 'quantile_distance'":
|
||||
continue
|
||||
QD = pdf.quantile_distance(value)
|
||||
QDlist.append(QD)
|
||||
return QDlist
|
||||
|
||||
|
||||
def getQDQ(self,value):
|
||||
QDQlist = []
|
||||
for pdf in self:
|
||||
try:
|
||||
QDQ = pdf.qtile_dist_quot(value)
|
||||
QDQlist.append(QDQ)
|
||||
except AttributeError as e:
|
||||
if e.message == "'float' object has no attribute 'quantile_distance'":
|
||||
continue
|
||||
QDQ = pdf.qtile_dist_quot(value)
|
||||
QDQlist.append(QDQ)
|
||||
return QDQlist
|
||||
|
||||
|
||||
@ -413,6 +405,7 @@ class PDFstatistics(object):
|
||||
std = np.array(std)
|
||||
self.set_stdarray(std)
|
||||
|
||||
|
||||
def set_stdarray(self, array):
|
||||
if self.return_phase == 'P':
|
||||
self.p_stdarray = array
|
||||
@ -471,7 +464,6 @@ def main():
|
||||
Insheim.getSTD()
|
||||
qdlist = Insheim.getQDQ(0.3)
|
||||
binlist = Insheim.getBinList(0.,3.)
|
||||
Insheim.histplot(qdlist,binlist)
|
||||
print qdlist
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user