Commit dc9cb04f authored by Sauerwein Nick Jacob's avatar Sauerwein Nick Jacob
Browse files

observed the windows problem with paralellization (objects), solved some...

observed the windows problem with paralellization (objects), solved some problems with focuscamera and parabolicmirror
parent 7a04282a
......@@ -39,14 +39,13 @@ class FocusCamera:
self.min_intensity = config['min_intensity']
self.cam.properties['ExposureTimeAbs']=config['ExposureTimeAbs']
self.min_intensity = config['min_intensity']
self.measure_full = config['measure_full']
def get_config(self):
config = {}
config['ExposureTimeAbs'] = self.cam.properties['ExposureTimeAbs']
config['xmin'], config['xmax'],config['ymin'], config['ymax']= (self.xmin, self.xmax, self.ymin, self.ymax)
config['min_intensity'] = self.min_intensity
config['measure_full'] = self.measure_full
return config
......
......@@ -29,15 +29,11 @@ class ParabolicMirror:
def set_config(self,config):
self.pos_local_origin_g = np.array([0.,0.,0.])
self.Pay.mAbs(config['pos_Pay'])
self.Paz.mAbs(config['pos_Paz'])
def get_config(self):
config = {}
pos_g = self.get_position()
config = {}
config['pos_Pay'] = float(self.Pay.getPos())
config['pos_Paz'] = float(self.Paz.getPos())
......
......@@ -255,6 +255,8 @@ def main(devices, io):
plot_meas_check = {}
devices2measure = find_devices2measure()
print (devices2measure)
measurement = dm.measure(devices2measure)
global plot_config
plot_config = {}
......@@ -268,14 +270,14 @@ def main(devices, io):
item[1],
plot_config[device_name]).widget]
if hasattr(devices[i], 'plot_measure'):
if hasattr(devices2measure[i], 'plot_measure'):
wgs += [plot_config_tool('plot_measure',
0,
plot_config[device_name]).widget]
vbs += [widgets.VBox(wgs)]
names[i] = [type(devices[i]).__name__]
names[i] = [type(devices2measure[i]).__name__]
measure_tab = widgets.Tab(children = vbs, _titles= names)
vb_plot_config.children = [bt_plot_config_init, measure_tab]
......@@ -309,7 +311,7 @@ def main(devices, io):
return devices2measure
def measure(bt, comment = '', name = None):
devices2measure = find_devices2measure()
from multiprocessing import Process, Pipe
from multiprocess import Process, Pipe
#loop measure
def loop_measure(parallel = False, connec = None):
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment