[eda8972] | 1 | ## Left off at SASInstrument, line 178 |
---|
| 2 | |
---|
| 3 | class cansasConstants: |
---|
| 4 | CANSAS_NS = { |
---|
| 5 | "1.0" : { |
---|
| 6 | "ns" : "cansas1d/1.0", |
---|
| 7 | "schema" : "cansas1d_v1_0.xsd" |
---|
| 8 | }, |
---|
| 9 | "1.1" : { |
---|
| 10 | "ns" : "urn:cansas1d:1.1", |
---|
| 11 | "schema" : "cansas1d_v1_1.xsd" |
---|
| 12 | } |
---|
| 13 | } |
---|
| 14 | CANSAS_FORMAT = { |
---|
| 15 | "SASentry" : { |
---|
| 16 | "units_optional" : True, |
---|
[75eeb425] | 17 | "variable" : None, |
---|
[eda8972] | 18 | "storeas" : "content", |
---|
| 19 | "attributes" : {"name" : {"variable" : "{0}.run_name[node_value] = \"{1}\""}}, |
---|
| 20 | "children" : { |
---|
| 21 | "Title" : {"variable" : "{0}.title = \"{1}\""}, |
---|
| 22 | "Run" : { |
---|
| 23 | "variable" : "{0}.run.append(\"{1}\")", |
---|
| 24 | "attributes" : {"name" : {"variable" : "{0}.run_name[node_value] = \"{1}\""}} |
---|
| 25 | }, |
---|
| 26 | "SASdata" : { |
---|
| 27 | "attributes" : {"name" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"",}}, |
---|
[75eeb425] | 28 | "variable" : None, |
---|
[eda8972] | 29 | "children" : {"Idata" : { |
---|
| 30 | "storeas" : "float", |
---|
| 31 | "units_optional" : False, |
---|
[75eeb425] | 32 | "variable" : None, |
---|
[eda8972] | 33 | "attributes" : { |
---|
| 34 | "name" : { |
---|
| 35 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 36 | "storeas" : "content", |
---|
| 37 | }, |
---|
| 38 | "timestamp" : { |
---|
| 39 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 40 | "storeas" : "content", |
---|
| 41 | } |
---|
| 42 | }, |
---|
| 43 | "children" : { |
---|
| 44 | "Q" : { |
---|
| 45 | "variable" : "{0}.x = numpy.append({0}.x, {1})", |
---|
[75eeb425] | 46 | "unit" : "x_unit", |
---|
[eda8972] | 47 | "attributes" : { |
---|
| 48 | "unit" : { |
---|
[75eeb425] | 49 | "variable" : "{0}._xunit = \"{1}\"", |
---|
[eda8972] | 50 | "storeas" : "content" |
---|
| 51 | } |
---|
| 52 | } |
---|
| 53 | }, |
---|
| 54 | "I" : { |
---|
| 55 | "variable" : "{0}.y = numpy.append({0}.y, {1})", |
---|
[75eeb425] | 56 | "unit" : "y_unit", |
---|
[eda8972] | 57 | "attributes" : { |
---|
| 58 | "unit" : { |
---|
[75eeb425] | 59 | "variable" : "{0}._yunit = \"{1}\"", |
---|
[eda8972] | 60 | "storeas" : "content" |
---|
| 61 | } |
---|
| 62 | } |
---|
| 63 | }, |
---|
| 64 | "Idev" : { |
---|
| 65 | "variable" : "{0}.dy = numpy.append({0}.dy, {1})", |
---|
[75eeb425] | 66 | "unit" : "y_unit", |
---|
[eda8972] | 67 | "attributes" : { |
---|
| 68 | "unit" : { |
---|
| 69 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 70 | "storeas" : "content" |
---|
| 71 | } |
---|
| 72 | }, |
---|
| 73 | }, |
---|
| 74 | "Qdev" : { |
---|
| 75 | "variable" : "{0}.dx = numpy.append({0}.dx, {1})", |
---|
[75eeb425] | 76 | "unit" : "x_unit", |
---|
[eda8972] | 77 | "attributes" : { |
---|
| 78 | "unit" : { |
---|
| 79 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 80 | "storeas" : "content" |
---|
| 81 | } |
---|
| 82 | }, |
---|
| 83 | }, |
---|
| 84 | "dQw" : { |
---|
| 85 | "variable" : "{0}.dxw = numpy.append({0}.dxw, {1})", |
---|
[75eeb425] | 86 | "unit" : "x_unit", |
---|
[eda8972] | 87 | "attributes" : { |
---|
| 88 | "unit" : { |
---|
| 89 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 90 | "storeas" : "content" |
---|
| 91 | } |
---|
| 92 | }, |
---|
| 93 | }, |
---|
| 94 | "dQl" : { |
---|
| 95 | "variable" : "{0}.dxl = numpy.append({0}.dxl, {1})", |
---|
[75eeb425] | 96 | "unit" : "x_unit", |
---|
[eda8972] | 97 | "attributes" : { |
---|
| 98 | "unit" : { |
---|
| 99 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 100 | "storeas" : "content" |
---|
| 101 | } |
---|
| 102 | }, |
---|
| 103 | }, |
---|
| 104 | "Qmean" : { |
---|
| 105 | "storeas" : "content", |
---|
[75eeb425] | 106 | "unit" : "x_unit", |
---|
[eda8972] | 107 | "variable" : "{0}.meta_data[\"{2}\"] = {1}", |
---|
| 108 | "attributes" : {"unit" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\""}}, |
---|
| 109 | }, |
---|
| 110 | "Shadowfactor" : { |
---|
| 111 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 112 | "storeas" : "content", |
---|
| 113 | }, |
---|
| 114 | "<any>" : { |
---|
| 115 | "variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"", |
---|
| 116 | "storeas" : "content", |
---|
| 117 | } |
---|
| 118 | } |
---|
| 119 | }, |
---|
| 120 | "<any>" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\"",} |
---|
| 121 | } |
---|
| 122 | }, |
---|
| 123 | "SAStransmission_spectrum" : { |
---|
[75eeb425] | 124 | "variable" : None, |
---|
[eda8972] | 125 | "children" : { |
---|
| 126 | "Tdata" : { |
---|
[75eeb425] | 127 | "storeas" : "float", |
---|
| 128 | "variable" : None, |
---|
[eda8972] | 129 | "children" : { |
---|
| 130 | "Lambda" : { |
---|
[75eeb425] | 131 | "variable" : "{0}.trans_spectrum.wavelength.append({1})", |
---|
| 132 | "unit" : "trans_spectrum.wavelength_unit", |
---|
| 133 | "attributes" : { |
---|
| 134 | "unit" : { |
---|
| 135 | "variable" : "{0}.trans_spectrum.wavelength_unit = \"{1}\"", |
---|
| 136 | "storeas" : "content" |
---|
| 137 | } |
---|
| 138 | } |
---|
[eda8972] | 139 | }, |
---|
| 140 | "T" : { |
---|
[75eeb425] | 141 | "variable" : "{0}.trans_spectrum.transmission.append({1})", |
---|
| 142 | "unit" : "trans_spectrum.transmission_unit", |
---|
| 143 | "attributes" : { |
---|
| 144 | "unit" : { |
---|
| 145 | "variable" : "{0}.trans_spectrum.transmission_unit = \"{1}\"", |
---|
| 146 | "storeas" : "content" |
---|
| 147 | } |
---|
| 148 | } |
---|
[eda8972] | 149 | }, |
---|
| 150 | "Tdev" : { |
---|
[75eeb425] | 151 | "variable" : "{0}.trans_spectrum.transmission_deviation.append({1})", |
---|
| 152 | "unit" : "trans_spectrum.transmission_deviation_unit", |
---|
| 153 | "attributes" : { |
---|
| 154 | "unit" : { |
---|
| 155 | "variable" : "{0}.trans_spectrum.transmission_deviation_unit = \"{1}\"", |
---|
| 156 | "storeas" : "content" |
---|
| 157 | } |
---|
| 158 | } |
---|
[eda8972] | 159 | }, |
---|
| 160 | "<any>" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\""}, |
---|
| 161 | } |
---|
| 162 | }, |
---|
| 163 | "<any>" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\""}, |
---|
| 164 | }, |
---|
[75eeb425] | 165 | "attributes" : {"name" : {"variable" : "{0}.trans_spectrum.name = \"{1}\""}, |
---|
| 166 | "timestamp" : {"variable" : "{0}.trans_spectrum.timestamp = \"{1}\""},} |
---|
[eda8972] | 167 | }, |
---|
| 168 | "SASsample" : { |
---|
| 169 | "attributes" : {"name" : {"variable" : "{0}.sample.name = \"{1}\""},}, |
---|
[75eeb425] | 170 | "variable" : None, |
---|
[eda8972] | 171 | "children" : { |
---|
| 172 | "ID" : {"variable" : "{0}.sample.ID = \"{1}\""}, |
---|
| 173 | "thickness" : { |
---|
| 174 | "variable" : "{0}.sample.thickness = {1}", |
---|
| 175 | "unit" : "sample.thickness_unit", |
---|
| 176 | "storeas" : "float", |
---|
| 177 | "attributes" : { |
---|
| 178 | "units" : { |
---|
| 179 | "variable" : "{0}.sample.thickness_unit = \"{1}\"", |
---|
| 180 | "storeas" : "content" |
---|
| 181 | } |
---|
| 182 | }, |
---|
| 183 | }, |
---|
| 184 | "transmission" : { |
---|
| 185 | "variable" : "{0}.sample.transmission = {1}", |
---|
| 186 | "storeas" : "float", |
---|
| 187 | }, |
---|
| 188 | "temperature" : { |
---|
| 189 | "variable" : "{0}.sample.temperature = {1}", |
---|
| 190 | "unit" : "sample.temperature_unit", |
---|
| 191 | "storeas" : "float", |
---|
| 192 | "attributes" : { |
---|
| 193 | "units" : { |
---|
| 194 | "variable" : "{0}.sample.temperature_unit = \"{1}\"", |
---|
| 195 | "storeas" : "content" |
---|
| 196 | } |
---|
| 197 | }, |
---|
| 198 | }, |
---|
| 199 | "position" : { |
---|
| 200 | "children" : { |
---|
[75eeb425] | 201 | "variable" : None, |
---|
[eda8972] | 202 | "x" : { |
---|
| 203 | "variable" : "{0}.sample.position.x = {1}", |
---|
| 204 | "unit" : "sample.position_unit", |
---|
| 205 | "storeas" : "float", |
---|
| 206 | "attributes" : { |
---|
| 207 | "units" : { |
---|
| 208 | "variable" : "{0}.sample.position_unit = \"{1}\"", |
---|
| 209 | "storeas" : "content" |
---|
| 210 | } |
---|
| 211 | } |
---|
| 212 | }, |
---|
| 213 | "y" : { |
---|
| 214 | "variable" : "{0}.sample.position.y = {1}", |
---|
| 215 | "unit" : "sample.position_unit", |
---|
| 216 | "attributes" : { |
---|
| 217 | "units" : { |
---|
| 218 | "variable" : "{0}.sample.position_unit = \"{1}\"", |
---|
| 219 | "storeas" : "content" |
---|
| 220 | } |
---|
| 221 | } |
---|
| 222 | }, |
---|
| 223 | "z" : { |
---|
| 224 | "variable" : "{0}.sample.position.z = {1}", |
---|
| 225 | "unit" : "sample.position_unit", |
---|
| 226 | "attributes" : { |
---|
| 227 | "units" : { |
---|
| 228 | "variable" : "{0}.sample.position_unit = \"{1}\"", |
---|
| 229 | "storeas" : "content" |
---|
| 230 | } |
---|
| 231 | } |
---|
| 232 | }, |
---|
| 233 | }, |
---|
| 234 | }, |
---|
| 235 | "orientation" : { |
---|
[75eeb425] | 236 | "variable" : None, |
---|
[eda8972] | 237 | "children" : { |
---|
| 238 | "roll" : { |
---|
| 239 | "variable" : "{0}.sample.orientation.x = {1}", |
---|
| 240 | "unit" : "sample.orientation_unit", |
---|
| 241 | "storeas" : "float", |
---|
| 242 | "attributes" : { |
---|
| 243 | "units" : { |
---|
| 244 | "variable" : "{0}.sample.orientation_unit = \"{1}\"", |
---|
| 245 | "storeas" : "content" |
---|
| 246 | } |
---|
| 247 | } |
---|
| 248 | }, |
---|
| 249 | "pitch" : { |
---|
| 250 | "variable" : "{0}.sample.orientation.y = {1}", |
---|
| 251 | "unit" : "sample.orientation_unit", |
---|
| 252 | "storeas" : "float", |
---|
| 253 | "attributes" : { |
---|
| 254 | "units" : { |
---|
| 255 | "variable" : "{0}.sample.orientation_unit = \"{1}\"", |
---|
| 256 | "storeas" : "content" |
---|
| 257 | } |
---|
| 258 | } |
---|
| 259 | }, |
---|
| 260 | "yaw" : { |
---|
| 261 | "variable" : "{0}.sample.orientation.z = {1}", |
---|
| 262 | "unit" : "sample.orientation_unit", |
---|
| 263 | "storeas" : "float", |
---|
| 264 | "attributes" : { |
---|
| 265 | "units" : { |
---|
| 266 | "variable" : "{0}.sample.orientation_unit = \"{1}\"", |
---|
| 267 | "storeas" : "content" |
---|
| 268 | } |
---|
| 269 | } |
---|
| 270 | }, |
---|
| 271 | }, |
---|
| 272 | }, |
---|
| 273 | "details" : {"variable" : "{0}.sample.details.append(\"{1}\")"}, |
---|
| 274 | "<any>" : {"variable" : "{0}.meta_data[\"{2}\"] = \"{1}\""} |
---|
| 275 | }, |
---|
| 276 | }, |
---|
| 277 | "SASinstrument" : { |
---|
[75eeb425] | 278 | "variable" : None, |
---|
[eda8972] | 279 | "children" : { |
---|
[75eeb425] | 280 | "variable" : None, |
---|
[eda8972] | 281 | "name" : {"variable" : "{0}.instrument = \"{1}\""}, |
---|
| 282 | "SASsource" : { |
---|
| 283 | "attributes" : {"name" : {"variable" : "{0}.source.name = \"{1}\""}}, |
---|
[75eeb425] | 284 | "variable" : None, |
---|
[eda8972] | 285 | "children" : { |
---|
| 286 | "radiation" : {"variable" : "{0}.source.radiation = \"{1}\""}, |
---|
| 287 | "beam_size" : { |
---|
| 288 | "attributes" : {"name" : {"variable" : "{0}.source.beam_size_name = \"{1}\""}}, |
---|
[75eeb425] | 289 | "variable" : None, |
---|
[eda8972] | 290 | "children" : { |
---|
| 291 | "x" : { |
---|
| 292 | "variable" : "{0}.source.beam_size.x = {1}", |
---|
| 293 | "unit" : "source.beam_size_unit", |
---|
| 294 | "storeas" : "float", |
---|
| 295 | "attributes" : { |
---|
| 296 | "unit" : "{0}.source.beam_size_unit = \"{1}\"", |
---|
| 297 | "storeas" : "content" |
---|
| 298 | } |
---|
| 299 | }, |
---|
| 300 | "y" : { |
---|
| 301 | "variable" : "{0}.source.beam_size.y = {1}", |
---|
| 302 | "unit" : "source.beam_size_unit", |
---|
| 303 | "storeas" : "float", |
---|
| 304 | "attributes" : { |
---|
| 305 | "unit" : "{0}.source.beam_size_unit = \"{1}\"", |
---|
| 306 | "storeas" : "content" |
---|
| 307 | } |
---|
| 308 | }, |
---|
| 309 | "z" : { |
---|
| 310 | "variable" : "{0}.source.beam_size.z = {1}", |
---|
| 311 | "unit" : "source.beam_size_unit", |
---|
| 312 | "storeas" : "float", |
---|
| 313 | "attributes" : { |
---|
| 314 | "unit" : "{0}.source.beam_size_unit = \"{1}\"", |
---|
| 315 | "storeas" : "content" |
---|
| 316 | } |
---|
| 317 | }, |
---|
| 318 | } |
---|
| 319 | }, |
---|
| 320 | "beam_shape" : {"variable" : "{0}.source.beam_shape = \"{1}\""}, |
---|
| 321 | "wavelength" : { |
---|
| 322 | "variable" : "{0}.source.wavelength = {1}", |
---|
| 323 | "unit" : "source.wavelength_unit", |
---|
| 324 | "storeas" : "float", |
---|
| 325 | "attributes" : { |
---|
| 326 | "unit" : { |
---|
| 327 | "variable" : "{0}.source.wavelength_unit = \"{1}\"", |
---|
| 328 | "storeas" : "content" |
---|
| 329 | }, |
---|
| 330 | } |
---|
| 331 | }, |
---|
| 332 | "wavelength_min" : { |
---|
| 333 | "variable" : "{0}.source.wavelength_min = {1}", |
---|
| 334 | "unit" : "source.wavelength_min_unit", |
---|
| 335 | "storeas" : "float", |
---|
| 336 | "attributes" : { |
---|
| 337 | "unit" : { |
---|
| 338 | "variable" : "{0}.source.wavelength_min_unit = \"{1}\"", |
---|
| 339 | "storeas" : "content" |
---|
| 340 | }, |
---|
| 341 | } |
---|
| 342 | }, |
---|
| 343 | "wavelength_max" : { |
---|
| 344 | "variable" : "{0}.source.wavelength_max = {1}", |
---|
| 345 | "unit" : "source.wavelength_max_unit", |
---|
| 346 | "storeas" : "float", |
---|
| 347 | "attributes" : { |
---|
| 348 | "unit" : { |
---|
| 349 | "variable" : "{0}.source.wavelength_max_unit = \"{1}\"", |
---|
| 350 | "storeas" : "content" |
---|
| 351 | }, |
---|
| 352 | } |
---|
| 353 | }, |
---|
| 354 | "wavelength_spread" : { |
---|
| 355 | "variable" : "{0}.source.wavelength_spread = {1}", |
---|
| 356 | "unit" : "source.wavelength_spread_unit", |
---|
| 357 | "storeas" : "float", |
---|
| 358 | "attributes" : { |
---|
| 359 | "unit" : {"variable" : "{0}.source.wavelength_spread_unit = \"{1}\""}, |
---|
| 360 | "storeas" : "content" |
---|
| 361 | } |
---|
| 362 | }, |
---|
| 363 | }, |
---|
| 364 | }, |
---|
| 365 | "SAScollimation" : { |
---|
| 366 | "attributes" : {"name" : {"variable" : "{0}.name = \"{1}\""}}, |
---|
| 367 | "variable" : None, |
---|
| 368 | "children" : { |
---|
| 369 | "length" : { |
---|
| 370 | "variable" : "{0}.length = {1}", |
---|
| 371 | "unit" : "length_unit", |
---|
| 372 | "storeas" : "float", |
---|
| 373 | "attributes" : { |
---|
| 374 | "storeas" : "content", |
---|
| 375 | "unit" : {"variable" : "{0}.length_unit = \"{1}\""} |
---|
| 376 | }, |
---|
| 377 | }, |
---|
| 378 | "aperture" : { |
---|
[75eeb425] | 379 | "variable" : None, |
---|
[eda8972] | 380 | "attributes" : { |
---|
| 381 | "name" : {"variable" : "{0}.name = \"{1}\""}, |
---|
| 382 | "type" : {"variable" : "{0}.type = \"{1}\""}, |
---|
| 383 | }, |
---|
| 384 | "children" : { |
---|
| 385 | "size" : { |
---|
| 386 | "attributes" : {"unit" : {"variable" : "{0}.size_unit = \"{1}\""}}, |
---|
| 387 | "children" : { |
---|
| 388 | "storeas" : "float", |
---|
| 389 | "x" : { |
---|
| 390 | "variable" : "{0}.size.x = {1}", |
---|
| 391 | "unit" : "size_unit", |
---|
| 392 | "storeas" : "float", |
---|
| 393 | "attributes" : { |
---|
| 394 | "unit" : { |
---|
| 395 | "variable" : "{0}.size_unit = \"{1}\"", |
---|
| 396 | "storeas" : "content" |
---|
| 397 | }, } |
---|
| 398 | }, |
---|
| 399 | "y" : { |
---|
| 400 | "variable" : "{0}.size.y = {1}", |
---|
| 401 | "unit" : "size_unit", |
---|
| 402 | "storeas" : "float", |
---|
| 403 | "attributes" : { |
---|
| 404 | "unit" : { |
---|
| 405 | "variable" : "{0}.size_unit = \"{1}\"", |
---|
| 406 | "storeas" : "content" |
---|
| 407 | }, |
---|
| 408 | } |
---|
| 409 | }, |
---|
| 410 | "z" : { |
---|
| 411 | "variable" : "{0}.size.z = {1}", |
---|
| 412 | "unit" : "size_unit", |
---|
| 413 | "storeas" : "float", |
---|
| 414 | "attributes" : { |
---|
| 415 | "unit" : { |
---|
| 416 | "variable" : "{0}.size_unit = \"{1}\"", |
---|
| 417 | "storeas" : "content" |
---|
| 418 | }, |
---|
| 419 | } |
---|
| 420 | }, |
---|
| 421 | } |
---|
| 422 | }, |
---|
[75eeb425] | 423 | "distance" : { |
---|
| 424 | "storeas" : "float", |
---|
| 425 | "attributes" : { |
---|
| 426 | "storeas" : "content", |
---|
| 427 | "unit" : {"variable" : "{0}.distance_unit = \"{1}\""}}, |
---|
[eda8972] | 428 | "variable" : "{0}.distance = {1}", |
---|
[75eeb425] | 429 | "unit" : "distance_unit", |
---|
[eda8972] | 430 | } |
---|
| 431 | } |
---|
| 432 | }, |
---|
| 433 | }, |
---|
| 434 | }, |
---|
| 435 | "SASdetector" : { |
---|
| 436 | "storeas" : "float", |
---|
| 437 | "variable" : None, |
---|
| 438 | "attributes" : { |
---|
| 439 | "name" : { |
---|
| 440 | "storeas" : "content", |
---|
| 441 | "variable" : "{0}.name = \"{1}\"", |
---|
| 442 | } |
---|
| 443 | }, |
---|
| 444 | "children" : { |
---|
| 445 | "name" : { |
---|
| 446 | "storeas" : "content", |
---|
| 447 | "variable" : "{0}.name = \"{1}\"", |
---|
| 448 | }, |
---|
| 449 | "SDD" : { |
---|
| 450 | "variable" : "{0}.distance = {1}", |
---|
| 451 | "unit" : "distance_unit", |
---|
| 452 | "attributes" : { |
---|
| 453 | "unit" : { |
---|
| 454 | "variable" : "{0}.distance_unit = \"{1}\"", |
---|
| 455 | "storeas" : "content" |
---|
| 456 | } |
---|
| 457 | }, |
---|
| 458 | }, |
---|
| 459 | "offset" : { |
---|
[75eeb425] | 460 | "variable" : None, |
---|
[eda8972] | 461 | "children" : { |
---|
| 462 | "x" : { |
---|
| 463 | "variable" : "{0}.offset.x = {1}", |
---|
| 464 | "unit" : "offset_unit", |
---|
| 465 | "attributes" : { |
---|
| 466 | "unit" : { |
---|
| 467 | "variable" : "{0}.offset_unit = \"{1}\"", |
---|
| 468 | "storeas" : "content" |
---|
| 469 | }, |
---|
| 470 | } |
---|
| 471 | }, |
---|
| 472 | "y" : { |
---|
| 473 | "variable" : "{0}.offset.y = {1}", |
---|
| 474 | "unit" : "offset_unit", |
---|
| 475 | "attributes" : { |
---|
| 476 | "unit" : { |
---|
| 477 | "variable" : "{0}.offset_unit = \"{1}\"", |
---|
| 478 | "storeas" : "content" |
---|
| 479 | }, |
---|
| 480 | } |
---|
| 481 | }, |
---|
| 482 | "z" : { |
---|
| 483 | "variable" : "{0}.offset.z = {1}", |
---|
| 484 | "unit" : "offset_unit", |
---|
| 485 | "attributes" : { |
---|
| 486 | "unit" : { |
---|
| 487 | "variable" : "{0}.offset_unit = \"{1}\"", |
---|
| 488 | "storeas" : "content" |
---|
| 489 | }, |
---|
| 490 | } |
---|
| 491 | }, |
---|
| 492 | } |
---|
| 493 | }, |
---|
| 494 | "orientation" : { |
---|
[75eeb425] | 495 | "variable" : None, |
---|
[eda8972] | 496 | "children" : { |
---|
| 497 | "roll" : { |
---|
| 498 | "variable" : "{0}.orientation.x = {1}", |
---|
| 499 | "unit" : "orientation_unit", |
---|
| 500 | "attributes" : { |
---|
| 501 | "unit" : "{0}.orientation_unit = \"{1}\"", |
---|
| 502 | "storeas" : "content" |
---|
| 503 | } |
---|
| 504 | }, |
---|
| 505 | "pitch" : { |
---|
| 506 | "variable" : "{0}.orientation.y = {1}", |
---|
| 507 | "unit" : "orientation_unit", |
---|
| 508 | "attributes" : { |
---|
| 509 | "unit" : "{0}.orientation_unit = \"{1}\"", |
---|
| 510 | "storeas" : "content" |
---|
| 511 | } |
---|
| 512 | }, |
---|
| 513 | "yaw" : { |
---|
| 514 | "variable" : "{0}.orientation.z = {1}", |
---|
| 515 | "unit" : "orientation_unit", |
---|
| 516 | "attributes" : { |
---|
| 517 | "unit" : "{0}.orientation_unit = \"{1}\"", |
---|
| 518 | "storeas" : "content" |
---|
| 519 | } |
---|
| 520 | }, |
---|
| 521 | } |
---|
| 522 | }, |
---|
| 523 | "beam_center" : { |
---|
[75eeb425] | 524 | "variable" : None, |
---|
[eda8972] | 525 | "children" : { |
---|
| 526 | "x" : { |
---|
| 527 | "variable" : "{0}.beam_center.x = {1}", |
---|
| 528 | "unit" : "beam_center_unit", |
---|
| 529 | "attributes" : { |
---|
| 530 | "unit" : "{0}.beam_center_unit = \"{1}\"", |
---|
| 531 | "storeas" : "content" |
---|
| 532 | } |
---|
| 533 | }, |
---|
| 534 | "y" : { |
---|
| 535 | "variable" : "{0}.beam_center.y = {1}", |
---|
| 536 | "unit" : "beam_center_unit", |
---|
| 537 | "attributes" : { |
---|
| 538 | "unit" : "{0}.beam_center_unit = \"{1}\"", |
---|
| 539 | "storeas" : "content" |
---|
| 540 | } |
---|
| 541 | }, |
---|
| 542 | "z" : { |
---|
| 543 | "variable" : "{0}.beam_center.z = {1}", |
---|
| 544 | "unit" : "beam_center_unit", |
---|
| 545 | "attributes" : { |
---|
| 546 | "unit" : "{0}.beam_center_unit = \"{1}\"", |
---|
| 547 | "storeas" : "content" |
---|
| 548 | } |
---|
| 549 | }, |
---|
| 550 | } |
---|
| 551 | }, |
---|
| 552 | "pixel_size" : { |
---|
[75eeb425] | 553 | "variable" : None, |
---|
[eda8972] | 554 | "children" : { |
---|
| 555 | "x" : { |
---|
| 556 | "variable" : "{0}.pixel_size.x = {1}", |
---|
| 557 | "unit" : "pixel_size_unit", |
---|
| 558 | "attributes" : { |
---|
| 559 | "unit" : "{0}.pixel_size_unit = \"{1}\"", |
---|
| 560 | "storeas" : "content" |
---|
| 561 | } |
---|
| 562 | }, |
---|
| 563 | "y" : { |
---|
| 564 | "variable" : "{0}.pixel_size.y = {1}", |
---|
| 565 | "unit" : "pixel_size_unit", |
---|
| 566 | "attributes" : { |
---|
| 567 | "unit" : "{0}.pixel_size_unit = \"{1}\"", |
---|
| 568 | "storeas" : "content" |
---|
| 569 | } |
---|
| 570 | }, |
---|
| 571 | "z" : { |
---|
| 572 | "variable" : "{0}.pixel_size.z = {1}", |
---|
| 573 | "unit" : "pixel_size_unit", |
---|
| 574 | "attributes" : { |
---|
| 575 | "unit" : "{0}.pixel_size_unit = \"{1}\"", |
---|
| 576 | "storeas" : "content" |
---|
| 577 | } |
---|
| 578 | }, |
---|
| 579 | } |
---|
| 580 | }, |
---|
| 581 | "slit_length" : { |
---|
| 582 | "variable" : "{0}.slit_length = {1}", |
---|
| 583 | "unit" : "slit_length_unit", |
---|
| 584 | "attributes" : { |
---|
| 585 | "unit" : { |
---|
| 586 | "variable" : "{0}.slit_length_unit = \"{1}\"", |
---|
| 587 | "storeas" : "content" |
---|
| 588 | } |
---|
| 589 | } |
---|
| 590 | } |
---|
| 591 | }, |
---|
| 592 | }, |
---|
| 593 | }, |
---|
| 594 | }, |
---|
| 595 | "SASprocess" : { |
---|
[75eeb425] | 596 | "variable" : None, |
---|
[eda8972] | 597 | "children" : { |
---|
[75eeb425] | 598 | "name" : {"variable" : "{0}.name = \'{1}\'"}, |
---|
| 599 | "date" : {"variable" : "{0}.date = \'{1}\'"}, |
---|
| 600 | "description" : {"variable" : "{0}.description = \'{1}\'"}, |
---|
[eda8972] | 601 | "term" : { |
---|
| 602 | "variable" : None, |
---|
| 603 | "attributes" : { |
---|
| 604 | "unit" : {"variable" : None}, |
---|
| 605 | "name" : {"variable" : None} |
---|
| 606 | } |
---|
| 607 | }, |
---|
[75eeb425] | 608 | "SASprocessnote" : { |
---|
| 609 | "variable" : None, |
---|
| 610 | "children" : {"<any>" : {"variable" : "{0}.notes.append(\'2}: {1}\')"}}}, |
---|
| 611 | "<any>" : {"variable" : "{0}.notes.append(\'{2}: {1}\')",} |
---|
[eda8972] | 612 | }, |
---|
| 613 | }, |
---|
[75eeb425] | 614 | "SASnote" : {"variable" : "{0}.notes.append(\'{1}\')"}, |
---|
| 615 | "<any>" : {"variable" : "{0}.meta_data[\"{2}\"] = \'{1}\'"}, |
---|
[eda8972] | 616 | } |
---|
| 617 | } |
---|
| 618 | } |
---|