-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKB_motor_scan.py
executable file
·51 lines (43 loc) · 1.32 KB
/
KB_motor_scan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
!#/usr/bin/env python
# -*- coding: utf-8 -*-
'''
VFM tz motor scan.
'''
import gevent
import traceback
import logging
import time
import os
import pickle
import numpy as np
import pylab
import sys
from xray_experiment import xray_experiment
from scipy.constants import eV, h, c, angstrom, kilo, degree
from monitor import Si_PIN_diode
import optparse
from motor import vfm_tz_motor, hfm_tx_motor
from motor import vfm_rx_motor, hfm_rz_motor
class KB_motor_scan(xray_experiment):
def __init__(self,
name_pattern,
directory,
start,
end,
default_position,
darkcurrent_time=5.,
photon_energy=None,
diagnostic=True,
analysis=None,
conclusion=None,
simulation=None,
display=False,
extract=False):
xray_experiment.__init__(self,
name_pattern,
directory,
photon_energy=photon_energy,
diagnostic=diagnostic,
analysis=analysis,
conclusion=conclusion,
simulation=simulation)