3.10.1.26. opengate.utility¶
3.10.1.26.1. Attributes¶
3.10.1.26.2. Functions¶
|
|
|
|
|
Get different variants of a material name, e.g. with/without prepended G4_, only first letter capital. |
|
|
|
|
|
|
|
Prefix the text with indent spaces |
|
|
|
Consider a list of Classname. For each, it build a key/value, with: |
|
|
|
|
|
|
|
|
|
Debug print current Function name |
|
Debug print variable name and its value |
|
|
|
|
Print information about OpenGate and the environment |
3.10.1.26.3. Module Contents¶
- opengate.utility.get_material_name_variants(material_name)[source]¶
Get different variants of a material name, e.g. with/without prepended G4_, only first letter capital. Intended to bridge inconsistencies in naming conventions.
- opengate.utility.indent(amount, text, ch=' ')[source]¶
Prefix the text with indent spaces https://stackoverflow.com/questions/8234274/how-to-indent-the-contents-of-a-multi-line-string