From 05b000a6d94d6fb4d0a269b25077b65fa3fd096e Mon Sep 17 00:00:00 2001 From: tmadlener Date: Fri, 13 Sep 2024 20:13:45 +0200 Subject: [PATCH] Move imports to the top --- scripts/createEDM4hepFile.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/createEDM4hepFile.py b/scripts/createEDM4hepFile.py index 44e9415e5..b27cd9950 100755 --- a/scripts/createEDM4hepFile.py +++ b/scripts/createEDM4hepFile.py @@ -3,9 +3,13 @@ # Description: Create a file with EDM4hep data using the EDM4hep python bindings # The purpose of the script is to use all the classes of the EDM4hep library # to create a file with dummy data. + +import argparse +import sys +from itertools import count + import podio import edm4hep -from itertools import count FRAMES = 3 # How many frames or events will be written VECTORSIZE = 5 # For vector members, each vector member will have this size @@ -471,9 +475,6 @@ def create_frame(): if __name__ == "__main__": - import argparse - import sys - parser = argparse.ArgumentParser(description="Create a file with EDM4hep data") parser.add_argument( "--rntuple", action="store_true", help="Use a ROOT ntuple instead of EDM4hep"