Skip to content

Commit

Permalink
Import argparse and sys only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 6, 2024
1 parent d883551 commit 4cb4882
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/createEDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import podio
import edm4hep
from itertools import count
import argparse
import sys

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 @@ -472,6 +470,9 @@ 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 4cb4882

Please sign in to comment.