#extrap.SetRange() extrap.Draw("same") a=extrap.GetParameter(0) b=extrap.GetParameter(1) if a!=0: eta=(Nexpected-a)/b print "ETA is:",eta,"weeks",eta*7.,"days" else: print "cannot compute eta" while True: time.sleep(1) else: print one,"has still no entries" if __name__ == "__main__": i=Interface('http://cms-pdmv-golem.cern.ch:5984/stats') allDocs=i.get_all_files() docs = [doc['id'] for doc in allDocs['rows']] test='vlimant_Winter532012BMuOniaParked_ASGCPrio1_537p5_130122_195107_1235' test='nnazirid_BPH-Summer12_DR53X-00091_T1_FR_CCIN2P3_MSS_000_v1__130121_143546_6312' #test='nnazirid_HIG-Summer12_DR53X-00956_T1_FR_CCIN2P3_MSS_000_v1__130121_153018_5646' for one in docs: if one !=test: continue thisDoc=i.get_file_info_withrev(one) plotGrowth(thisDoc,i,wait=True)