Definition at line 6 of file ActsCollectionsConfig.py.
◆ __init__()
None ActsCollectionsConfig.TrackBackends.__init__ |
( |
|
self | ) |
|
Definition at line 23 of file ActsCollectionsConfig.py.
24 self.collections = dict()
25 for el
in TrackBackends.postFixes:
26 self.collections[el] =
None
◆ __str__()
str ActsCollectionsConfig.TrackBackends.__str__ |
( |
|
self | ) |
|
Definition at line 28 of file ActsCollectionsConfig.py.
28 def __str__(self) -> str:
30 for el
in TrackBackends.postFixes:
31 message += f
"{el}={self.collections[el]} "
◆ addCollection()
None ActsCollectionsConfig.TrackBackends.addCollection |
( |
|
self, |
|
|
*str |
collection |
|
) |
| |
Definition at line 50 of file ActsCollectionsConfig.py.
52 collection: str) ->
None:
53 assert isinstance(collection, str)
54 for el
in TrackBackends.postFixes:
55 if collection.endswith(el):
56 if self.collections[el]
is not None:
57 raise Exception(f
"Trying to add collection '{collection}', but this backend is already recorded")
58 self.collections[el] = collection
61 raise Exception(f
"Collection {collection} is a NOT KNOWN ACTS track backend")
◆ extractPrefix()
str ActsCollectionsConfig.TrackBackends.extractPrefix |
( |
*str |
collection | ) |
|
|
static |
Definition at line 36 of file ActsCollectionsConfig.py.
36 def extractPrefix(*, collection: str) -> str:
37 assert isinstance(collection, str)
38 for el
in TrackBackends.postFixes:
39 if collection.endswith(el):
40 return collection.replace(el,
"")
42 raise Exception(f
"Collection {collection} is a NOT KNOWN ACTS track backend, prefix could not be deduced")
◆ isValid()
bool ActsCollectionsConfig.TrackBackends.isValid |
( |
|
self | ) |
|
◆ collections
ActsCollectionsConfig.TrackBackends.collections |
◆ postFixes
ActsCollectionsConfig.TrackBackends.postFixes |
|
static |
◆ types
ActsCollectionsConfig.TrackBackends.types |
|
static |
The documentation for this class was generated from the following file: