2 from pathlib
import Path
6 from acts
import MaterialMapJsonConverter, JsonMaterialDecorator
11 with pytest.raises(TypeError):
12 acts.examples.RootMaterialDecorator()
13 fileName =
"blubb.root"
16 acts.examples.RootMaterialDecorator,
17 level=acts.logging.INFO,
20 except RuntimeError
as e:
21 assert fileName
in str(e)
25 config = MaterialMapJsonConverter.Config()
26 deco = JsonMaterialDecorator(
29 Path(__file__).parent.parent.parent.parent
30 /
"thirdparty/OpenDataDetector/config/odd-material-mapping-config.json"
32 level=acts.logging.WARNING,