Commit 06987379 authored by Claudio Scafuri's avatar Claudio Scafuri 💬
Browse files

#13746 : new OPA2 delay calibration table

parent 457c725c
240 0.001
241 0.022
242 0.046
243 0.075
244 0.107
245 0.147
246 0.189
247 0.236
248 0.287
249 0.343
250 0.404
251 0.470
252 0.540
253 0.615
254 0.694
255 0.779
256 0.868
257 0.962
258 1.061
259 1.165
260 1.274
261 1.388
262 1.507
263 1.631
264 1.760
265 1.894
......@@ -10,7 +10,7 @@ import delay_shifter_calc
class Test(unittest.TestCase):
def setUp(self):
self.opa = delay_shifter_calc.delay_shifter_calc('../etc/fel01/Relative_delay_300_365-FEL01.txt')
self.opa = delay_shifter_calc.delay_shifter_calc('../etc/fel02/Relative_delay_240-265nm-OPA2-v2.txt')
def tearDown(self):
pass
......@@ -19,14 +19,14 @@ class Test(unittest.TestCase):
pass
def test_value(self):
l1 = 310
l2 = 350
l1 = 250
l2 = 260
print('delta ps:', self.opa.get_compensation_delay(l1, l2))
print('delta ps:', self.opa.get_compensation_delay(l2, l1))
def testFwl(self):
l1 = 300.1
l2 = 310.0
l1 = 260.1
l2 = 255.0
print('Fwl delta ps:', self.opa.get_compensation_delay(l1, l2))
print('Fwl delta ps:', self.opa.get_compensation_delay(l2, l1))
......
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