Skip to content

Commit

Permalink
Merge branch 'main' into chore-update-traccc-and-friends
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger authored Feb 4, 2025
2 parents 3d63ac1 + 58f34e2 commit 5c132a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Examples/Python/src/GeoModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ void addGeoModel(Context& ctx) {
ACTS_PYTHON_MEMBER(path);
ACTS_PYTHON_MEMBER(logLevel);
ACTS_PYTHON_STRUCT_END();

// patch the constructor
patchKwargsConstructor(c);
}

// Shape converters
Expand Down
3 changes: 2 additions & 1 deletion Examples/Scripts/Python/material_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def main():
elif args.input.endswith(".gdml"):
detector = acts.examples.geant4.GdmlDetector(path=args.input)
elif args.input.endswith(".sqlite") or args.input.endswith(".db"):
detector = acts.examples.GeoModelDetector(path=args.input)
gmdConfig = acts.geomodel.GeoModelDetector.Config(path=args.input)
detector = acts.geomodel.GeoModelDetector(gmdConfig)

runMaterialRecording(
detector=detector,
Expand Down

0 comments on commit 5c132a5

Please sign in to comment.