Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Huth authored and Benjamin Huth committed Aug 21, 2024
1 parent d1455c7 commit c5f40f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Examples/Python/python/acts/examples/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,10 @@ def getG4DetectorConstructionFactory(
print(e)

try:
from acts import geomodel as gm
from acts.examples.geant4.geomodel import GeoModelDetectorConstructionFactory
return GeoModelDetectorConstructionFactory(detector, regionList)
if type(detector) is gm.GeoModelTree:
return GeoModelDetectorConstructionFactory(detector, regionList)
except Exception as e:
print(e)

Expand Down

0 comments on commit c5f40f9

Please sign in to comment.