From bcffa0cf8f02c7f15c654f72d02ca41c7e85df18 Mon Sep 17 00:00:00 2001
From: Johannes Schumann <johannes.schumann@fau.de>
Date: Tue, 24 Jan 2023 12:38:01 +0100
Subject: [PATCH] Fix dimension input in runner script

---
 km3buu/cmd.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/km3buu/cmd.py b/km3buu/cmd.py
index c92ff71..917cbe7 100755
--- a/km3buu/cmd.py
+++ b/km3buu/cmd.py
@@ -227,9 +227,9 @@ def main():
     elif args.geometry == 'can':
         kwargs = {"detector_center": tuple(args.center), "zenith": args.zenith}
         if args.dimensions:
-            kwargs["radius"] = arg.dimensions[0]
-            kwargs["zmin"] = arg.dimensions[1]
-            kwargs["zmax"] = arg.dimensions[2]
+            kwargs["radius"] = args.dimensions[0]
+            kwargs["zmin"] = args.dimensions[1]
+            kwargs["zmax"] = args.dimensions[2]
         volume = CanVolume(**kwargs)
     run_descriptor = ""
     if args.runnumber:
-- 
GitLab