MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / ScanMetadataXRF

Class ScanMetadataXRF

pyxrf/model/scan_metadata.py:143–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143class ScanMetadataXRF(ScanMetadataBase):
144 def __init__(self, *args, **kwargs):
145 super().__init__(*args, **kwargs)
146
147 def _gen_default_print_order(self):
148 """
149 Generates a list of strings, used to determine printing order of metadata
150 The strings in the list are treated as regex strings:
151 the symbols ^ and $ are added at the beginning and the end of each string.
152 Empty string "" means that the empty string is inserted in the printout.
153 The metadata entries are never repeated in the printout, so in each group
154 the patterns are specified from more specific to more general.
155 """
156 print_order = [
157 "scan_id",
158 "scan_uid",
159 "scan_instrument_name",
160 "scan_instrument_id",
161 "scan_end_station",
162 "scan_time_start",
163 "scan_time_start_utc",
164 "scan_time_stop",
165 "scan_time_stop_utc",
166 "scan.*",
167 "",
168 "sample_name",
169 "sample.*",
170 "",
171 "param_type",
172 "param_input",
173 "param_shape",
174 "param_snake",
175 "param_dwell",
176 "param_theta",
177 "param_theta_units",
178 "param_delta",
179 "param_delta_units",
180 "param_fast_axis",
181 "param_fast_axis_units",
182 "param_slow_axis",
183 "param_slow_axis_units",
184 "param_interferometer_posX",
185 "param_interferometer_posY",
186 "param_interferometer_posZ",
187 "param.*",
188 "",
189 "proposal_num",
190 "proposal_title",
191 "proposal.*",
192 "",
193 "experiment.*",
194 "",
195 "instrument.*",
196 "",
197 "(?!file).*",
198 "",
199 "file_format",
200 "file_format_version",

Callers 4

clearMethod · 0.85
read_hdf_APSFunction · 0.85
read_MAPSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected