Skip to content

Commit

Permalink
rename var in dash so doesnt collide with logger log
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Aug 31, 2024
1 parent f55d48f commit b1aec4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions py/desispec/scripts/procdashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,11 @@ def count_num_files(ftype, expid=None):

newest_jobid, logfile = 0, None

for log in lognames:
jobid = int(log.split('-')[-1].split('.')[0])
for itlog in lognames:
jobid = int(itlog.split('-')[-1].split('.')[0])
if jobid > newest_jobid:
newest_jobid = jobid
logname = log
logname = itlog
if newest_jobid > 0:
slurmname = logname.replace(f'-{jobid}.log', '.slurm')
slurm_hlink = _hyperlink(os.path.relpath(slurmname, webpage), 'Slurm')
Expand Down
6 changes: 3 additions & 3 deletions py/desispec/scripts/zprocdashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,11 @@ def populate_night_zinfo(night, doem=True, doqso=True, dotileqa=True, dozmtl=Tru
lognames = glob.glob(templatelog)

newest_jobid, logfile = 0, None
for log in lognames:
jobid = int(log.split('-')[-1].split('.')[0])
for itlog in lognames:
jobid = int(itlog.split('-')[-1].split('.')[0])
if jobid > newest_jobid:
newest_jobid = jobid
logname = log
logname = itlog
if newest_jobid > 0:
slurmname = logname.replace(f'-{jobid}.log', '.slurm')
slurm_hlink = _hyperlink(os.path.relpath(slurmname, webpage), 'Slurm')
Expand Down

0 comments on commit b1aec4e

Please sign in to comment.