SRCHSTR = "nroots"
OUTFILE = "nroots"

with open("cal.log", "r") as fin:
  with open(OUTFILE+".txt", "w+") as fout:
    for line in fin:
      ind = line.find(SRCHSTR + " Time Taken: ")
      if ind != -1:
        fout.write(line[ind+len(SRCHSTR + " Time Taken: "):])
6c056cdb7199440d8a03959c7734c780575d0385
<mask token>

<mask token>
with open('cal.log', 'r') as fin:
    with open(OUTFILE + '.txt', 'w+') as fout:
        for line in fin:
            ind = line.find(SRCHSTR + ' Time Taken: ')
            if ind != -1:
                fout.write(line[ind + len(SRCHSTR + ' Time Taken: '):])

SRCHSTR = 'nroots'
OUTFILE = 'nroots'
with open('cal.log', 'r') as fin:
    with open(OUTFILE + '.txt', 'w+') as fout:
        for line in fin:
            ind = line.find(SRCHSTR + ' Time Taken: ')
            if ind != -1:
                fout.write(line[ind + len(SRCHSTR + ' Time Taken: '):])

SRCHSTR = "nroots"
OUTFILE = "nroots"

with open("cal.log", "r") as fin:
  with open(OUTFILE+".txt", "w+") as fout:
    for line in fin:
      ind = line.find(SRCHSTR + " Time Taken: ")
      if ind != -1:
        fout.write(line[ind+len(SRCHSTR + " Time Taken: "):])