Skip to content

Commit

Permalink
Move imports to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 16, 2024
1 parent 25b48b5 commit 05b000a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/createEDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 05b000a

Please sign in to comment.