Skip to content

v0.2.6

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Feb 21:44

This release adds the ability to specify a line offset and a number of lines to read to the get_pbs_records method. The line number of each record is also tracked as record metadata in the form of record._location. Paired together, these would allow you to read in a file in chunks with something like this:

offset = 0

while True:
    jobs = get_pbs_records(data_file, offset = offset)
    today = datetime.date.today()

    for job in jobs:
       offset = job._location
        ...

    offset += 1

    if log_date != today:
        break

Full Changelog: v0.2.5...v0.2.6