Skip to content

Commit

Permalink
fixes for commented DatasetInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mafrahm committed Feb 13, 2024
1 parent 702f6da commit 4611f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/get_das_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def convert_top(data: dict) -> str:
or to a DatasetInfo for variations of datasets such as tune or mtop.
Exemplary usage:
python get_das_info.py -c convert_top -d "/TTtoLNu2Q*/Run3Summer22EENanoAODv12-130X_*/NANOAODSIM"
python get_das_info.py -c top -d "/TTtoLNu2Q*/Run3Summer22EENanoAODv12-130X_*/NANOAODSIM"
"""
dataset_type = None

Expand Down Expand Up @@ -92,9 +92,9 @@ def convert_top(data: dict) -> str:
)"""
elif dataset_type == "comment":
# comment out this dataset
return f""" # {dataset_type}=DatasetInfo(
return f""" # {identifier}=DatasetInfo(
# keys=[
# "xxx", # noqa
# "{data['name']}", # noqa
# ],
# n_files={data['nfiles']},
# n_events={data['nevents']},
Expand Down

0 comments on commit 4611f3d

Please sign in to comment.