diff --git a/bind/example.py b/bind/example.py index b58be66..dd93507 100644 --- a/bind/example.py +++ b/bind/example.py @@ -8,6 +8,6 @@ cw.addLayer(10,"G4_Si",True, 3) #10 cm of Silicon, active, 3x3 segmentation G4s = G4System() G4s.init(cw) -G4s.run_batch(100, "gamma", 1000, 5000) #100 events, photons, 1000 MeV to 5000 MeV +#G4s.run_batch(100, "gamma", 1000, 5000) #100 events, photons, 1000 MeV to 5000 MeV G4s.run_visualize("gamma", 1000, 5000) \ No newline at end of file diff --git a/src/G4System.cc b/src/G4System.cc index 7e36fa7..b5ba6ad 100644 --- a/src/G4System.cc +++ b/src/G4System.cc @@ -127,7 +127,4 @@ void G4System::check()const{ if(UImanager == nullptr){ throw std::runtime_error("UImanager not found"); } - if(ui == nullptr){ - throw std::runtime_error("UI not found"); - } } \ No newline at end of file