API reference¶
Convert custom (vendor-specific) acquisition metadata to common metadata.
Dict in, dict out:
from imaging_metadata_converter import convert_metadata
common = convert_metadata({'Make': 'Acme', 'Model': 'Widget-1000'})
DEFAULT_COMBINATIONS_FILE = os.path.join(os.path.dirname(__file__), 'mappings', 'combinations.json')
module-attribute
¶
DEFAULT_MAPPINGS_FILE = os.path.join(os.path.dirname(__file__), 'mappings', 'mappings.json')
module-attribute
¶
DEFAULT_MODEL_FILE = os.path.join(os.path.dirname(__file__), 'models', 'imaging.yaml')
module-attribute
¶
DEFAULT_SCHEMA_FILE = DEFAULT_MODEL_FILE
module-attribute
¶
SOURCE_MAP_KEY = 'SourceMap'
module-attribute
¶
__all__ = ['AcquisitionMetadataMapper', 'DEFAULT_COMBINATIONS_FILE', 'DEFAULT_MAPPINGS_FILE', 'DEFAULT_MODEL_FILE', 'DEFAULT_SCHEMA_FILE', 'ModelPaths', 'SOURCE_MAP_KEY', 'convert_metadata']
module-attribute
¶
__version__ = '2.0.1'
module-attribute
¶
convert_metadata(metadata)
¶
Map a custom metadata dict onto the common model and return the result.
Source code in src/imaging_metadata_converter/__init__.py
43 44 45 | |
AcquisitionMetadataMapper
¶
Map per-source acquisition metadata onto the imaging model.
Uses the field mappings in mappings/mappings.json to translate vendor- specific metadata trees into the imaging model (models/imaging.yaml, see ModelPaths for the paths it uses). This module works purely with in-memory dicts.
Fields with no entry in mappings.json are matched against the schema itself as a fallback, since some sources (e.g. OME-derived metadata) already use field names that match the schema, just without a vendor-specific prefix.
CAMERA_SOFTWARE_BLOCKS = ('OlympusSIS',)
module-attribute
¶
DEFAULT_COMBINATIONS_FILE = os.path.join(os.path.dirname(__file__), 'mappings', 'combinations.json')
module-attribute
¶
DEFAULT_MAPPINGS_FILE = os.path.join(os.path.dirname(__file__), 'mappings', 'mappings.json')
module-attribute
¶
DEFAULT_SCHEMA_FILE = DEFAULT_MODEL_FILE
module-attribute
¶
DURATION = re.compile('(?:(\\d+(?:\\.\\d+)?)\\s*h)?\\s*(?:(\\d+(?:\\.\\d+)?)\\s*min)?\\s*(?:(\\d+(?:\\.\\d+)?)\\s*s)?')
module-attribute
¶
EXIF_EQUIPMENT = (('Manufacturer', 'Make'), ('Model', 'Model'))
module-attribute
¶
FILETIME_EPOCH = datetime(1601, 1, 1)
module-attribute
¶
FORMATS_KEEPING_PARTS = ('count',)
module-attribute
¶
ITEM_SELECTOR = re.compile('(?P<name>[^.\\[\\]]+)\\[(?P<fields>\\w+=[^\\]]*)\\]')
module-attribute
¶
ITEM_SELECTOR_PART = re.compile('\\[\\w+=[^\\]]*\\]')
module-attribute
¶
LEICA_BANDS = 'ConfocalSettingDefinition.Spectro.MultiBand'
module-attribute
¶
LEICA_CAMERAS = 'IndividualCameraInfoArray.IndividualCameraInfo'
module-attribute
¶
LEICA_CAMERA_NAME = re.compile('(?P<model>.+)-(?P<serial>\\d+)')
module-attribute
¶
LEICA_DETECTORS = 'ConfocalSettingDefinition.DetectorList.Detector'
module-attribute
¶
LEICA_DETECTOR_CLASSES = {'PMT': 'PhotoMultiplierTube', 'HyD': 'HybridPhotoDetector'}
module-attribute
¶
LEICA_LASERS = 'ConfocalSettingDefinition.LaserArray.Laser'
module-attribute
¶
LEICA_SEQUENCES = 'LDM_Block_Sequential.LDM_Block_Sequential_List.ConfocalSettingDefinition'
module-attribute
¶
LEICA_SEQUENTIAL_MASTER = 'LDM_Block_Sequential_Master'
module-attribute
¶
LEICA_SETTINGS = 'HardwareSetting'
module-attribute
¶
LEICA_STAND_CLASSES = {'1': 'InvertedMicroscopeStand', '0': 'UprightMicroscopeStand'}
module-attribute
¶
LEICA_STAND_DEFINITIONS = ('ConfocalSettingDefinition', 'CameraSettingDefinition')
module-attribute
¶
LEICA_WIDEFIELD_CHANNELS = 'CameraSettingDefinition.WideFieldChannelConfigurator.WideFieldChannelInfo'
module-attribute
¶
QUANTITY = re.compile('([-+]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][-+]?\\d+)?)\\s*([^\\d\\s].*)')
module-attribute
¶
SOURCE_MAP_KEY = 'SourceMap'
module-attribute
¶
VELOX_IMAGE_DETECTOR = 'BinaryResult.Detector'
module-attribute
¶
AcquisitionMetadataMapper
¶
Maps vendor-specific acquisition metadata onto the imaging model.
Loads the model's paths and mappings.json once, then converts one or
more metadata dicts using convert_metadata. Resolution for each field
happens in two steps: first the explicit mappings.json rules (exact or
"Prefix.*" wildcard), then, for anything left unmapped, a fallback match
against the schema's own field names (e.g. standard OME metadata, which
the schema is based on, already lines up with it directly). Fields that
match neither step are kept at their original path so no data is lost.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
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 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | |
combinations = self._load_json(combinations_file) if os.path.exists(combinations_file) else []
instance-attribute
¶
implied_units = {source: rule['unit'] for source, rule in rules.items() if isinstance(rule, dict)}
instance-attribute
¶
item_fields = {source: target for source, target in self.mappings.items() if isinstance(target, str) and '[].' in target}
instance-attribute
¶
mappings = {source: rule['target'] if isinstance(rule, dict) else rule for source, rule in rules.items()}
instance-attribute
¶
schema = model.tree() if model else self._load_json(schema_file)
instance-attribute
¶
__init__(schema_file=DEFAULT_SCHEMA_FILE, mappings_file=DEFAULT_MAPPINGS_FILE, combinations_file=DEFAULT_COMBINATIONS_FILE)
¶
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
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 | |
convert_metadata(metadata)
¶
Map a single in-memory metadata dict onto the imaging model.
Returns the converted dict, with a top-level SOURCE_MAP_KEY section
mapping every output leaf path to the source path it came from, so
renamed and collapsed keys stay recoverable from the output alone:
a list of paths for a value derived from them, and {"Source": path,
"SourceValue": spelling} for a value written in the model's spelling.
A top-level vendor tag wrapper (see _vendor_wrapper) is left out
of the paths rules are matched against, but nothing else about it
is: its unmapped fields stay under it, and every source path keeps it.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 | |
unmatched_fields(metadata)
¶
List the output paths of leaf fields not represented in the model.
Converts metadata, then walks the full output and flags every
leaf whose complete path is not itself a leaf declared in the
schema. This deliberately looks past mappings.json's whole-segment
wildcard rules (see _resolve_whole_segment_wildcard_path): a rule
collapsing a vendor-specific subtree into a generic object-typed
container (e.g. CustomProperties) makes conversion succeed, but the
individual fields inside that subtree are still not modelled by the
schema, so they must still count as unmatched here.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | |
append_nested_list_value(target, dotted_path, value)
¶
Append value to the list at dotted_path, creating it if absent.
Used for a "Target[]" mapping entry: a source key whose name embeds an instance index (e.g. "Image:0", "Detector-3") collapses into a plain list at "Target" instead of baking that index into an output key, so a second instance (e.g. "Image:1") appends a second list item rather than colliding with (and silently overwriting) the first. Returns the new item's index.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 | |
as_lists(value)
¶
value as it would read from JSON, as the examples the rules and combinations are written against do:
every tuple a list (tifffile gives Exif's fractions as tuples, (41, 5000)), and a date or time its text
(tifffile reads Olympus's datetime as one: "2025-05-28 10:54:00").
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 | |
can_append(target, dotted_path)
¶
Whether dotted_path in target is free or already a list, so appending there overwrites nothing.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 | |
combination_unit(text, value_format)
¶
The unit a "duration" or "quantity" combination writes beside its value, else None.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1251 1252 1253 1254 1255 1256 | |
drop_parts(result, provenance, parts, model_fields)
¶
Remove from result each of parts (source paths) that is in no model field, as a value derived from it
holds it now: Exif's ExposureTime [41, 5000] once Plane.ExposureTime is 0.0082, Cikteq's User.TimeStamp
that "User.*" moved to Experimenter. A list goes once all its items do; a part inside a list item stays.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 | |
is_at_or_below(path, target)
¶
Whether the output path is target itself, or a field or list item inside it.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1164 1165 1166 | |
is_free_path(target, dotted_path)
¶
Whether writing at dotted_path would leave every existing value in target intact.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 | |
is_number(value)
¶
Whether value is a number, or the text of one (TALOS writes "80000"): what a unit can qualify.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1259 1260 1261 1262 1263 1264 1265 | |
leaf_suffixes(value)
¶
Yield the path suffix of every leaf in value ('' for a scalar); empty dicts and lists count as leaves.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 | |
leica_detectors(metadata)
¶
(detector, its path) for each detector of a Leica confocal system: those of the image's own detector list, or, in a sequential scan without one, of its master sequence's; a sequence's own list names which of them it used.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 | |
matching_path(metadata, path)
¶
path, or where it holds "*" the first path of a value in metadata it matches (else path itself).
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1054 1055 1056 1057 1058 | |
parse_combination(text, date_format, item=None, pattern=None)
¶
text parsed with the strptime date_format, as ISO 8601, or None if it does not parse. The format
"unix" reads seconds since 1970 (UTC); 0 is taken as unset (TALOS writes "0" for a time it lacks), not
as 1970-01-01. The format "split" takes the item-th of the whitespace-separated words of text as a
number (BigDataViewer's size "1100 1100 1150"), or None if there is no number there.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 | |
placed_from_parts(provenance, target, sources)
¶
The source path of the value at target, where a rule put it there from the combination's sources (the
value itself, or its items: "ExposureTime[0]", "ExposureTime[1]"), else None.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 | |
pop_nested_value(target, dotted_path)
¶
Remove the value at dotted_path from target and return it, dropping the dicts it leaves empty (but not
a list item, whose place numbers the items after it).
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1183 1184 1185 1186 1187 1188 1189 1190 1191 | |
record_origins(provenance, record_path)
¶
The source paths of the values of the record at record_path, which a value derived from it comes from.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1113 1114 1115 1116 1117 1118 1119 1120 | |
resolve_exact_path(source_path, mappings)
¶
Resolve a dotted source path via an exact mapping entry, or None.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 | |
rule_targets(target)
¶
A rule's target paths: mappings.json names one, or a list of several for a single value; a rule stating a unit names its target in "target".
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1143 1144 1145 1146 1147 1148 | |
select_items(result, provenance, target, origin)
¶
target with each list item it names by its fields (Integration[Unit=Line,Method=Average]) as that item's
index in result, making the item, with those fields, where there is none, so neither its order nor its place
is assumed; the fields' SourceMap entry is origin, the value they describe. None where something other than a
list is in the way.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 | |
set_nested_value(target, dotted_path, value)
¶
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 | |
single_target(target, source_path)
¶
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1158 1159 1160 1161 | |
unit_field(target)
¶
The field holding the unit of the value at target: PhysicalSizeX's is PhysicalSizeXUnit, and a Quantity's
Value, or a QuantityRange's Begin or End, has its Unit beside it.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1151 1152 1153 1154 1155 | |
value_at_path(metadata, dotted_path)
¶
The value at a dotted source path of metadata ("Key[1]" naming a list item), or None.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 | |
without_selectors(target)
¶
target as the model path it writes to: Integration[Unit=Line].Number as Integration.Number.
Source code in src/imaging_metadata_converter/AcquisitionMetadataMapper.py
1096 1097 1098 | |
ModelPaths
¶
Dotted paths into the LinkML master model, as the mapper and its rules use them.
A path starts at a class with an identifier (OME, Image, Laser, ...), which the exporter can place on its own, and continues through the slots of components without one: OME.ElectronBeam.WorkingDistance.Value, Image.ObjectiveSettings.Medium. Every value in the model has one such path, so the mapper's name matching never sees the same field twice.
DEFAULT_MODEL_FILE = os.path.join(os.path.dirname(__file__), 'models', 'imaging.yaml')
module-attribute
¶
ModelPaths
¶
Source code in src/imaging_metadata_converter/ModelPaths.py
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 | |
classes = self.view.all_classes()
instance-attribute
¶
root = next(name for name, cls in self.classes.items() if cls.tree_root)
instance-attribute
¶
view = SchemaView(os.path.abspath(model_filename))
instance-attribute
¶
__init__(model_filename=DEFAULT_MODEL_FILE)
¶
Source code in src/imaging_metadata_converter/ModelPaths.py
18 19 20 21 22 23 | |
aliases()
¶
{Detector.Name: GenericDetector.Name, ...}: an abstract class's paths, for its default subtype.
Source code in src/imaging_metadata_converter/ModelPaths.py
99 100 101 102 103 104 105 106 107 | |
canonical(class_path)
¶
The path of Class.slot...: an abstract class replaced by its default subtype, and a component
prefixed with the path of the class nesting it. None where that is not unique.
Source code in src/imaging_metadata_converter/ModelPaths.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
default_subtype(class_name)
¶
The concrete class values for an abstract one go into (GenericDetector for Detector), or None.
Source code in src/imaging_metadata_converter/ModelPaths.py
33 34 35 36 | |
detector_settings()
¶
{detector class: the class of its settings for an image}, as LiMi's Model_Settings pairs them (PhotoMultiplierTube: PointDetectorSettings).
Source code in src/imaging_metadata_converter/ModelPaths.py
63 64 65 66 67 68 69 | |
has_identifier(class_name)
¶
Source code in src/imaging_metadata_converter/ModelPaths.py
30 31 | |
is_component(class_name)
¶
Source code in src/imaging_metadata_converter/ModelPaths.py
38 39 40 | |
parents(class_name)
¶
(class, slot) pairs nesting class_name directly.
Source code in src/imaging_metadata_converter/ModelPaths.py
116 117 118 119 | |
settings_path(path)
¶
The model path of a detector's settings a rule writes with the detector until the mapper knows whether it made the image (GenericDetector.GenericDetectorSettings.LiveTime.Value: LightPath.GenericDetectorSettings.LiveTime.Value); any other path as it is.
Source code in src/imaging_metadata_converter/ModelPaths.py
71 72 73 74 75 76 77 | |
slot_at(class_name, name)
¶
(slot, class it leads to) for the path segment name of class_name: the slot of that name, or, for a
concrete subtype named for itself (LightPath.GenericDetectorSettings), the slot over its abstract class.
Source code in src/imaging_metadata_converter/ModelPaths.py
79 80 81 82 83 84 85 86 87 | |
slots(class_name)
¶
Source code in src/imaging_metadata_converter/ModelPaths.py
25 26 27 28 | |
spellings()
¶
{enumeration: {alias: value}} for each enumeration whose values have other spellings ("um" for "µm", Leica's "OIL" for Oil).
Source code in src/imaging_metadata_converter/ModelPaths.py
109 110 111 112 113 114 | |
tree()
¶
{class: {slot: range or subtree}} for every class a path starts at; components are subtrees.
Source code in src/imaging_metadata_converter/ModelPaths.py
45 46 47 48 49 | |