-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.py
More file actions
executable file
·266 lines (263 loc) · 12.4 KB
/
Copy pathheader.py
File metadata and controls
executable file
·266 lines (263 loc) · 12.4 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
header="""<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE trakem2_anything [
<!ELEMENT trakem2 (project,t2_layer_set,t2_display)>
<!ELEMENT project (anything)>
<!ATTLIST project id NMTOKEN #REQUIRED>
<!ATTLIST project unuid NMTOKEN #REQUIRED>
<!ATTLIST project title NMTOKEN #REQUIRED>
<!ATTLIST project preprocessor NMTOKEN #REQUIRED>
<!ATTLIST project mipmaps_folder NMTOKEN #REQUIRED>
<!ATTLIST project storage_folder NMTOKEN #REQUIRED>
<!ELEMENT anything EMPTY>
<!ATTLIST anything id NMTOKEN #REQUIRED>
<!ATTLIST anything expanded NMTOKEN #REQUIRED>
<!ELEMENT t2_layer (t2_patch,t2_label,t2_layer_set,t2_profile)>
<!ATTLIST t2_layer oid NMTOKEN #REQUIRED>
<!ATTLIST t2_layer thickness NMTOKEN #REQUIRED>
<!ATTLIST t2_layer z NMTOKEN #REQUIRED>
<!ELEMENT t2_layer_set (t2_prop,t2_linked_prop,t2_annot,t2_layer,t2_pipe,t2_ball,t2_area_list,t2_calibration,t2_stack,t2_treeline)>
<!ATTLIST t2_layer_set oid NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set transform NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set style NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set locked NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set visible NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set title NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set links NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set composite NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set layer_width NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set layer_height NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set rot_x NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set rot_y NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set rot_z NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set snapshots_quality NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set color_cues NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set area_color_cues NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set avoid_color_cue_colors NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set n_layers_color_cue NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set paint_arrows NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set paint_tags NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set paint_edge_confidence_boxes NMTOKEN #REQUIRED>
<!ATTLIST t2_layer_set preload_ahead NMTOKEN #REQUIRED>
<!ELEMENT t2_calibration EMPTY>
<!ATTLIST t2_calibration pixelWidth NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration pixelHeight NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration pixelDepth NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration xOrigin NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration yOrigin NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration zOrigin NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration info NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration valueUnit NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration timeUnit NMTOKEN #REQUIRED>
<!ATTLIST t2_calibration unit NMTOKEN #REQUIRED>
<!ELEMENT t2_ball (t2_prop,t2_linked_prop,t2_annot,t2_ball_ob)>
<!ATTLIST t2_ball oid NMTOKEN #REQUIRED>
<!ATTLIST t2_ball layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_ball transform NMTOKEN #REQUIRED>
<!ATTLIST t2_ball style NMTOKEN #REQUIRED>
<!ATTLIST t2_ball locked NMTOKEN #REQUIRED>
<!ATTLIST t2_ball visible NMTOKEN #REQUIRED>
<!ATTLIST t2_ball title NMTOKEN #REQUIRED>
<!ATTLIST t2_ball links NMTOKEN #REQUIRED>
<!ATTLIST t2_ball composite NMTOKEN #REQUIRED>
<!ATTLIST t2_ball fill NMTOKEN #REQUIRED>
<!ELEMENT t2_ball_ob EMPTY>
<!ATTLIST t2_ball_ob x NMTOKEN #REQUIRED>
<!ATTLIST t2_ball_ob y NMTOKEN #REQUIRED>
<!ATTLIST t2_ball_ob r NMTOKEN #REQUIRED>
<!ATTLIST t2_ball_ob layer_id NMTOKEN #REQUIRED>
<!ELEMENT t2_label (t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_label oid NMTOKEN #REQUIRED>
<!ATTLIST t2_label layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_label transform NMTOKEN #REQUIRED>
<!ATTLIST t2_label style NMTOKEN #REQUIRED>
<!ATTLIST t2_label locked NMTOKEN #REQUIRED>
<!ATTLIST t2_label visible NMTOKEN #REQUIRED>
<!ATTLIST t2_label title NMTOKEN #REQUIRED>
<!ATTLIST t2_label links NMTOKEN #REQUIRED>
<!ATTLIST t2_label composite NMTOKEN #REQUIRED>
<!ELEMENT t2_filter EMPTY>
<!ELEMENT t2_patch (t2_prop,t2_linked_prop,t2_annot,ict_transform,ict_transform_list,t2_filter)>
<!ATTLIST t2_patch oid NMTOKEN #REQUIRED>
<!ATTLIST t2_patch layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_patch transform NMTOKEN #REQUIRED>
<!ATTLIST t2_patch style NMTOKEN #REQUIRED>
<!ATTLIST t2_patch locked NMTOKEN #REQUIRED>
<!ATTLIST t2_patch visible NMTOKEN #REQUIRED>
<!ATTLIST t2_patch title NMTOKEN #REQUIRED>
<!ATTLIST t2_patch links NMTOKEN #REQUIRED>
<!ATTLIST t2_patch composite NMTOKEN #REQUIRED>
<!ATTLIST t2_patch file_path NMTOKEN #REQUIRED>
<!ATTLIST t2_patch original_path NMTOKEN #REQUIRED>
<!ATTLIST t2_patch type NMTOKEN #REQUIRED>
<!ATTLIST t2_patch false_color NMTOKEN #REQUIRED>
<!ATTLIST t2_patch ct NMTOKEN #REQUIRED>
<!ATTLIST t2_patch o_width NMTOKEN #REQUIRED>
<!ATTLIST t2_patch o_height NMTOKEN #REQUIRED>
<!ATTLIST t2_patch min NMTOKEN #REQUIRED>
<!ATTLIST t2_patch max NMTOKEN #REQUIRED>
<!ATTLIST t2_patch o_width NMTOKEN #REQUIRED>
<!ATTLIST t2_patch o_height NMTOKEN #REQUIRED>
<!ATTLIST t2_patch pps NMTOKEN #REQUIRED>
<!ATTLIST t2_patch mres NMTOKEN #REQUIRED>
<!ATTLIST t2_patch ct_id NMTOKEN #REQUIRED>
<!ATTLIST t2_patch alpha_mask_id NMTOKEN #REQUIRED>
<!ELEMENT t2_pipe (t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_pipe oid NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe transform NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe style NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe locked NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe visible NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe title NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe links NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe composite NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe d NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe p_width NMTOKEN #REQUIRED>
<!ATTLIST t2_pipe layer_ids NMTOKEN #REQUIRED>
<!ELEMENT t2_polyline (t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_polyline oid NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline transform NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline style NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline locked NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline visible NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline title NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline links NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline composite NMTOKEN #REQUIRED>
<!ATTLIST t2_polyline d NMTOKEN #REQUIRED>
<!ELEMENT t2_profile (t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_profile oid NMTOKEN #REQUIRED>
<!ATTLIST t2_profile layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_profile transform NMTOKEN #REQUIRED>
<!ATTLIST t2_profile style NMTOKEN #REQUIRED>
<!ATTLIST t2_profile locked NMTOKEN #REQUIRED>
<!ATTLIST t2_profile visible NMTOKEN #REQUIRED>
<!ATTLIST t2_profile title NMTOKEN #REQUIRED>
<!ATTLIST t2_profile links NMTOKEN #REQUIRED>
<!ATTLIST t2_profile composite NMTOKEN #REQUIRED>
<!ATTLIST t2_profile d NMTOKEN #REQUIRED>
<!ELEMENT t2_area_list (t2_prop,t2_linked_prop,t2_annot,t2_area)>
<!ATTLIST t2_area_list oid NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list transform NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list style NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list locked NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list visible NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list title NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list links NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list composite NMTOKEN #REQUIRED>
<!ATTLIST t2_area_list fill_paint NMTOKEN #REQUIRED>
<!ELEMENT t2_area (t2_path)>
<!ATTLIST t2_area layer_id NMTOKEN #REQUIRED>
<!ELEMENT t2_path EMPTY>
<!ATTLIST t2_path d NMTOKEN #REQUIRED>
<!ELEMENT t2_dissector (t2_prop,t2_linked_prop,t2_annot,t2_dd_item)>
<!ATTLIST t2_dissector oid NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector transform NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector style NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector locked NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector visible NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector title NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector links NMTOKEN #REQUIRED>
<!ATTLIST t2_dissector composite NMTOKEN #REQUIRED>
<!ELEMENT t2_dd_item EMPTY>
<!ATTLIST t2_dd_item radius NMTOKEN #REQUIRED>
<!ATTLIST t2_dd_item tag NMTOKEN #REQUIRED>
<!ATTLIST t2_dd_item points NMTOKEN #REQUIRED>
<!ELEMENT t2_stack (t2_prop,t2_linked_prop,t2_annot,(iict_transform|iict_transform_list)?)>
<!ATTLIST t2_stack oid NMTOKEN #REQUIRED>
<!ATTLIST t2_stack layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_stack transform NMTOKEN #REQUIRED>
<!ATTLIST t2_stack style NMTOKEN #REQUIRED>
<!ATTLIST t2_stack locked NMTOKEN #REQUIRED>
<!ATTLIST t2_stack visible NMTOKEN #REQUIRED>
<!ATTLIST t2_stack title NMTOKEN #REQUIRED>
<!ATTLIST t2_stack links NMTOKEN #REQUIRED>
<!ATTLIST t2_stack composite NMTOKEN #REQUIRED>
<!ATTLIST t2_stack file_path CDATA #REQUIRED>
<!ATTLIST t2_stack depth CDATA #REQUIRED>
<!ELEMENT t2_tag EMPTY>
<!ATTLIST t2_tag name NMTOKEN #REQUIRED>
<!ATTLIST t2_tag key NMTOKEN #REQUIRED>
<!ELEMENT t2_node (t2_area*,t2_tag*)>
<!ATTLIST t2_node x NMTOKEN #REQUIRED>
<!ATTLIST t2_node y NMTOKEN #REQUIRED>
<!ATTLIST t2_node lid NMTOKEN #REQUIRED>
<!ATTLIST t2_node c NMTOKEN #REQUIRED>
<!ATTLIST t2_node r NMTOKEN #IMPLIED>
<!ELEMENT t2_treeline (t2_node*,t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_treeline oid NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline transform NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline style NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline locked NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline visible NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline title NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline links NMTOKEN #REQUIRED>
<!ATTLIST t2_treeline composite NMTOKEN #REQUIRED>
<!ELEMENT t2_areatree (t2_node*,t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_areatree oid NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree transform NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree style NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree locked NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree visible NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree title NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree links NMTOKEN #REQUIRED>
<!ATTLIST t2_areatree composite NMTOKEN #REQUIRED>
<!ELEMENT t2_connector (t2_node*,t2_prop,t2_linked_prop,t2_annot)>
<!ATTLIST t2_connector oid NMTOKEN #REQUIRED>
<!ATTLIST t2_connector layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_connector transform NMTOKEN #REQUIRED>
<!ATTLIST t2_connector style NMTOKEN #REQUIRED>
<!ATTLIST t2_connector locked NMTOKEN #REQUIRED>
<!ATTLIST t2_connector visible NMTOKEN #REQUIRED>
<!ATTLIST t2_connector title NMTOKEN #REQUIRED>
<!ATTLIST t2_connector links NMTOKEN #REQUIRED>
<!ATTLIST t2_connector composite NMTOKEN #REQUIRED>
<!ELEMENT t2_prop EMPTY>
<!ATTLIST t2_prop key NMTOKEN #REQUIRED>
<!ATTLIST t2_prop value NMTOKEN #REQUIRED>
<!ELEMENT t2_linked_prop EMPTY>
<!ATTLIST t2_linked_prop target_id NMTOKEN #REQUIRED>
<!ATTLIST t2_linked_prop key NMTOKEN #REQUIRED>
<!ATTLIST t2_linked_prop value NMTOKEN #REQUIRED>
<!ELEMENT t2_annot EMPTY>
<!ELEMENT t2_display EMPTY>
<!ATTLIST t2_display id NMTOKEN #REQUIRED>
<!ATTLIST t2_display layer_id NMTOKEN #REQUIRED>
<!ATTLIST t2_display x NMTOKEN #REQUIRED>
<!ATTLIST t2_display y NMTOKEN #REQUIRED>
<!ATTLIST t2_display magnification NMTOKEN #REQUIRED>
<!ATTLIST t2_display srcrect_x NMTOKEN #REQUIRED>
<!ATTLIST t2_display srcrect_y NMTOKEN #REQUIRED>
<!ATTLIST t2_display srcrect_width NMTOKEN #REQUIRED>
<!ATTLIST t2_display srcrect_height NMTOKEN #REQUIRED>
<!ATTLIST t2_display scroll_step NMTOKEN #REQUIRED>
<!ATTLIST t2_display c_alphas NMTOKEN #REQUIRED>
<!ATTLIST t2_display c_alphas_state NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_enabled NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_min_max_enabled NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_min NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_max NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_invert NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_clahe_enabled NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_clahe_block_size NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_clahe_histogram_bins NMTOKEN #REQUIRED>
<!ATTLIST t2_display filter_clahe_max_slope NMTOKEN #REQUIRED>
<!ELEMENT ict_transform EMPTY>
<!ATTLIST ict_transform class CDATA #REQUIRED>
<!ATTLIST ict_transform data CDATA #REQUIRED>
<!ELEMENT iict_transform EMPTY>
<!ATTLIST iict_transform class CDATA #REQUIRED>
<!ATTLIST iict_transform data CDATA #REQUIRED>
<!ELEMENT ict_transform_list (ict_transform|iict_transform)*>
<!ELEMENT iict_transform_list (iict_transform*)>
] >
<trakem2>
<project
id='0'
title='Project'
"""