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