Beispiel #1
0
        def loadExpFile(self, fullpath):
            name = transit_tools.basename(fullpath)
            (density, meanrd, nzmeanrd, nzmedianrd, maxrd, totalrd, skew,
             kurtosis) = tnseq_tools.get_wig_stats(fullpath)

            if WX_VERSION > 3:
                self.list_exp.InsertItem(self.index_exp, name)
                self.list_exp.SetItem(self.index_exp, 1, "%1.1f" % (totalrd))
                self.list_exp.SetItem(self.index_exp, 2,
                                      "%2.1f" % (density * 100))
                self.list_exp.SetItem(self.index_exp, 3, "%1.1f" % (meanrd))
                self.list_exp.SetItem(self.index_exp, 4, "%d" % (maxrd))
                self.list_exp.SetItem(self.index_exp, 5, "%s" % (fullpath))
            else:
                self.list_exp.InsertStringItem(self.index_exp, name)
                self.list_exp.SetStringItem(self.index_exp, 1,
                                            "%1.1f" % (totalrd))
                self.list_exp.SetStringItem(self.index_exp, 2,
                                            "%2.1f" % (density * 100))
                self.list_exp.SetStringItem(self.index_exp, 3,
                                            "%1.1f" % (meanrd))
                self.list_exp.SetStringItem(self.index_exp, 4, "%d" % (maxrd))
                self.list_exp.SetStringItem(self.index_exp, 5,
                                            "%s" % (fullpath))

            self.list_exp.Select(self.index_exp)
            self.index_exp += 1
Beispiel #2
0
        def loadCtrlFile(self, fullpath):
            name = transit_tools.basename(fullpath)
            (density, meanrd, nzmeanrd, nzmedianrd, maxrd, totalrd, skew,
             kurtosis) = tnseq_tools.get_wig_stats(fullpath)

            self.list_ctrl.InsertItem(self.index_ctrl, name)
            self.list_ctrl.SetItem(self.index_ctrl, 1, "%1.1f" % (totalrd))
            self.list_ctrl.SetItem(self.index_ctrl, 2,
                                   "%2.1f" % (density * 100))
            self.list_ctrl.SetItem(self.index_ctrl, 3, "%1.1f" % (meanrd))
            self.list_ctrl.SetItem(self.index_ctrl, 4, "%d" % (maxrd))
            self.list_ctrl.SetItem(self.index_ctrl, 5, "%s" % (fullpath))
            self.list_ctrl.Select(self.index_ctrl)
            self.index_ctrl += 1
Beispiel #3
0
        def loadExpFile(self, fullpath):
            name = transit_tools.basename(fullpath)
            (density, meanrd, nzmeanrd, nzmedianrd, maxrd, totalrd, skew, kurtosis) = tnseq_tools.get_wig_stats(fullpath)

            self.list_exp.InsertItem(self.index_exp, name)
            self.list_exp.SetItem(self.index_exp, 1, "%1.1f" % (totalrd))
            self.list_exp.SetItem(self.index_exp, 2, "%2.1f" % (density*100))
            self.list_exp.SetItem(self.index_exp, 3, "%1.1f" % (meanrd))
            self.list_exp.SetItem(self.index_exp, 4, "%d" % (maxrd))
            self.list_exp.SetItem(self.index_exp, 5, "%s" % (fullpath))
            self.list_exp.Select(self.index_exp)
            self.index_exp+=1