Example #1
0
 def update_browse_list(self):
     self.textbox.setText(str(self.path))
     self.myData = DataVaultWrapper(self.path, self.cxn)
     self.dirList = self.myData.dir()
     if len(self.path) > 1:
         self.dirList.insert(0, '...')
     self.plotList = self.myData.keys()
     self.populate_browserList()
     print "dirList  =", self.dirList
Example #2
0
    def __init__(self, parent=None):
        self.cxn = labrad.connect()
        self.dv = self.cxn.data_vault
        self.path = ['']
        # self.path = ['','Ted','Paramp','UCSB4.2','dev4.2.4','131010']
        QMainWindow.__init__(self, parent)
        self.setWindowTitle('QtPyPlot')
        #Stuff for importing from datavault
        self.plotShow = 1
        self.plotEnd = 5
        self.subMem = False  #Do I subtract memory trace from current trace?
        self.showMem = False  #Do I show the memory trace?
        self.buffTrace = np.array([])  #array to store trace
        self.listDep = []
        self.plots = np.arange(self.plotShow, self.plotEnd, 1)
        self.myData = DataVaultWrapper(self.path, self.cxn)
        # self.populate_browserList()
        self.dirList = self.myData.dir()
        # self.dirList.insert(0,'...')
        self.dep = 0
        # self.plotList = ['...']+self.myData.keys()
        self.plotList = self.myData.keys()
        # print self.plotList
        # for ps in self.plots:
        # print "enqueue " + str(ps)
        # self.myData.enqueueId(int(ps))
        # while not self.myData.cache.cache:
        # print "Loading..."
        # time.sleep(1)
        ### end of stuff for importing form datavault

        self.create_menu()
        self.create_main_frame()
        # self.create_status_bar()

        self.textbox.setText(str(self.path))
        self.on_draw()