Beispiel #1
0
    def __init__(self,parent = None, selected = [], flag = 0, *args):
        QtGui.QWidget.__init__(self, parent, *args)
        self.setupUi(self)
        QObject.connect(self.start, SIGNAL("clicked()"), self.start_acquisition)
        QObject.connect(self.imagej, SIGNAL("clicked()"), self.image_j)
        self.config = processor.parse_config()
        self.setup_a_scan()
#        self.setup_camera()
        self.setup_tomography()
        self.setup_select_image()
        self.processed_data = []
        self.current_image = 0
        self.setup_show_scale()
        self.setup_data_collector()
Beispiel #2
0
 def __init__(self, parent=None, selected=[], flag=0, *args):
     QtGui.QWidget.__init__(self, parent, *args)
     self.setupUi(self)
     QObject.connect(self.start, SIGNAL("clicked()"),
                     self.start_acquisition)
     QObject.connect(self.imagej, SIGNAL("clicked()"), self.image_j)
     self.config = processor.parse_config()
     self.setup_a_scan()
     #        self.setup_camera()
     self.setup_tomography()
     self.setup_select_image()
     self.processed_data = []
     self.current_image = 0
     self.setup_show_scale()
     self.setup_data_collector()
Beispiel #3
0
 def __init__(self, parent=None, selected=[], flag=0, *args):
     QtGui.QWidget.__init__(self, parent, *args)
     self.setupUi(self)
     self.config = processor.parse_config()
Beispiel #4
0
import processor
import signal_capture as sc
import signal as interrupt
import matplotlib.pyplot as plt
import numpy as np

config = processor.parse_config()

def interrupt_handler(interrupt, frame):
	print "interrupt"
	global interrupted
	interrupted = True

def setup_interruption():
    interrupt.signal(interrupt.SIGINT, interrupt_handler)
    global interrupted 
    interrupted = False

def init_plot(buffer):
    plt.ion()
    figure = plt.figure()
    return figure

def plot(data, graph):
    figure = graph
    plt.clf()
    rsp_data = processor.resample(data, config)
    ascan = processor.transform(rsp_data.T).T
    plt.subplot(211)
    plt.plot(rsp_data)
    plt.ylim([s*1E9 for s in [-1,1]])
Beispiel #5
0
 def __init__(self,parent = None, selected = [], flag = 0, *args):
     QtGui.QWidget.__init__(self, parent, *args)
     self.setupUi(self)
     self.config = processor.parse_config()