Skip to content

Commit

Permalink
Skipping too large files
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoDee committed Aug 13, 2024
1 parent 849d479 commit 92aef4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
for e_n,era in enumerate(eras_2024):
for p_n,pd in enumerate(pds_2024):
for e_key,evs in event_steps_dict.items():
if "50k" in e_key: # already defined in relval_standard
if "50k" == e_key: # already defined in relval_standard
continue
wf_number = base_wf_number_2024
wf_number = wf_number + offset_era * e_n
Expand Down
2 changes: 1 addition & 1 deletion Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@
###2024
# number of events limits the files used as input

pds_2024 = ['BTagMu', 'DisplacedJet', 'EGamma0', 'EphemeralZeroBias0', 'HcalNZS', 'JetMET0', 'Muon0', 'MuonEG', 'NoBPTX', 'ParkingDoubleMuonLowMass0', 'ParkingHH', 'ParkingLLP', 'ParkingSingleMuon0', 'ParkingVBF0', 'Tau', 'ZeroBias']
pds_2024 = ['BTagMu', 'DisplacedJet', 'EGamma0', 'HcalNZS', 'JetMET0', 'Muon0', 'MuonEG', 'NoBPTX', 'ParkingDoubleMuonLowMass0', 'ParkingHH', 'ParkingLLP', 'ParkingSingleMuon0', 'ParkingVBF0', 'Tau', 'ZeroBias']
eras_2024 = ['Run2024B', 'Run2024C', 'Run2024D', 'Run2024E', 'Run2024F']
for era in eras_2024:
for pd in pds_2024:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def das_lumi_data(dataset,opt=""):
df.to_csv(dataset.replace("/","")+".csv")

if events > 0:
df = df[df["events"] <= events] #jump too big files
df.loc[:,"sum_evs"] = df.loc[:,"events"].cumsum()
df = df[df["sum_evs"] < events]

Expand Down

0 comments on commit 92aef4d

Please sign in to comment.