app = QtGui.QApplication([]) fileDirectory = QtGui.QFileDialog.getExistingDirectory( None, "Select Directory", path) fileDirectory = str(fileDirectory).rstrip('/') runname = os.path.split(fileDirectory)[1] run = int(runname.strip('run')) dataPathInterp = fileDirectory + '/' SCAN = False pickleFile = open(pickFileName, 'w') pickle.dump(dataPathInterp, pickleFile) pickleFile.close() SLMpath = '/mnt/SLM/Dan/OptimizeSLM/Patterns/OrigSettings/' dataPath, dirCnt = createDatafolder() buf = ttag_wrap.openttag(dataPath + 'uqd.uqcfg') atexit.register(ttag_wrap.cleanUp, buf) buf.start() CoincidenceWindow = 10e-9 gate = 15e-9 heraldChan = 0 bobMirrorFileName = "/mnt/SLM/Dan/FindNanowiresSERICALPORT/NanowireScanNOSCRAMBLE/Bob/on.dat" nrows = 512 if SCAN: # scanning the SLM scanparams = [xstart, xstop, xstep, ystart, ystop, ystep] np.savetxt(dataPath + 'scanparameters.txt', scanparams, fmt='%d') pixel_list = [] for xo in range(xstart, xstop + 1, xstep):
Tacq = float(sys.argv[1]) # Need path of the interpolation file #dataPathInterp = '/hdd/2015_03_12/run%/' from pyqtgraph.Qt import QtGui, QtCore app = QtGui.QApplication([]) fileDirectory = QtGui.QFileDialog.getExistingDirectory(None, "Select Directory", "/hdd/") fileDirectory=str(fileDirectory).rstrip('/') runname = os.path.split(fileDirectory)[1] run = int(runname.strip('run')) dataPathInterp = fileDirectory + '/' SLMpath = '/mnt/SLM/Dan/OptimizeSLM/Patterns/OrigSettings/' #dataPath,dirCnt = createDatafolder() buf = ttag_wrap.openttag() atexit.register(ttag_wrap.cleanUp, buf) buf.start() CoincidenceWindow = 10e-9 gate = 10e-9 heraldChan = 0 bobMirrorFileName = "/mnt/SLM/Dan/FindNanowiresSERICALPORT/NanowireScanNOSCRAMBLE/Bob/on.dat" nrows = 512 if True: infoname = sys.argv[0].strip('.py')+'.info.txt' infofp = open(infoname,'w') infofp.write('# use the pixel mapping in this folder %s\n'%dataPathInterp)
app = QtGui.QApplication([]) fileDirectory = QtGui.QFileDialog.getExistingDirectory(None, "Select Directory", path) fileDirectory=str(fileDirectory).rstrip('/') runname = os.path.split(fileDirectory)[1] run = int(runname.strip('run')) dataPathInterp = fileDirectory + '/' SCAN=False pickleFile = open(pickFileName, 'w') pickle.dump(dataPathInterp, pickleFile) pickleFile.close() SLMpath = '/mnt/SLM/Dan/OptimizeSLM/Patterns/OrigSettings/' dataPath,dirCnt = createDatafolder() buf = ttag_wrap.openttag(dataPath + 'uqd.uqcfg') atexit.register(ttag_wrap.cleanUp, buf) buf.start() CoincidenceWindow = 10e-9 gate = 15e-9 heraldChan = 0 bobMirrorFileName = "/mnt/SLM/Dan/FindNanowiresSERICALPORT/NanowireScanNOSCRAMBLE/Bob/on.dat" nrows = 512 if SCAN: # scanning the SLM scanparams = [xstart, xstop, xstep, ystart, ystop, ystep] np.savetxt(dataPath + 'scanparameters.txt',scanparams,fmt='%d') pixel_list = [] for xo in range(xstart, xstop+1, xstep):