Skip to content

Commit

Permalink
Hotfix for GetNevents function for online run
Browse files Browse the repository at this point in the history
  • Loading branch information
GioDho committed Mar 21, 2024
1 parent 78ac9bb commit d77cee5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ def getNEvents(self,options):

run,tmpdir,tag = self.tmpname
mf = sw.swift_download_midas_file(run,tmpdir,tag) #you download the file here so that in multithread does not confuse if it downloaded or not
runlog='runlog_%s_auto.csv' % (options.tag)
df = pd.read_csv('pedestals/%s'%runlog)
if options.offline==False:
df = cy.read_cygno_logbook(tag=options.tag,start_run=run-2000,end_run=run+1)
else:
runlog='runlog_%s_auto.csv' % (options.tag)
df = pd.read_csv('pedestals/%s'%runlog)
if df.run_number.isin({int(options.run)}).any():
dffilter = df["run_number"] == int(options.run)
try:
Expand Down

0 comments on commit d77cee5

Please sign in to comment.