forked from mxcube/HardwareObjects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AbstractDetector.py
132 lines (108 loc) · 2.42 KB
/
AbstractDetector.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import abc
class AbstractDetector(object, metaclass=abc.ABCMeta):
def __init__(self):
"""
Descript. :
"""
self.pixel_min = None
self.pixel_max = None
self.default_distance = None
self.distance_limits = [None, None]
self.distance_limits_static = [None, None]
self.binding_mode = None
self.roi_mode = None
self.roi_modes_list = []
self.distance_motor_hwobj = None
@abc.abstractmethod
def get_distance(self):
"""
Descript. :
"""
return
@abc.abstractmethod
def get_distance_limits(self):
"""
Descript. :
"""
return
@abc.abstractmethod
def has_shutterless(self):
"""
Descript. :
"""
return
def get_roi_modes(self):
"""
Descript. :
"""
return self.roi_modes_list
def get_pixel_min(self):
"""
Descript. : Returns minimal pixel size
"""
return self.pixel_min
def get_pixel_max(self):
"""
Descript. : Returns maximal pixel size
"""
return self.pixel_max
def set_distance(self, value):
"""
Descript. :
"""
return
def set_detector_mode(self, value):
"""
Descript. :
"""
return
def prepare_acquisition(self, take_dark, start, osc_range, exptime, npass, number_of_images, comment, energy, still):
"""
Descript. :
"""
return
def last_image_saved(self):
"""
Descript. :
"""
return
def set_detector_filenames(self, frame_number, start, filename, jpeg_full_path, jpeg_thumbnail_full_path):
"""
Descript. :
"""
return
def start_acquisition(self):
"""
Descript. :
"""
return
def stop_acquisition(self):
"""
Descript. :
"""
return
def write_image(self):
"""
Descript. :
"""
return
def stop(self):
"""
Descript. :
"""
return
def reset_detector(self):
"""
Descript. :
"""
return
def wait_detector(self, until_state):
"""
Descript. :
"""
return
def wait_ready(self):
"""
Descript. :
"""
return