MCPcopy Create free account
hub / github.com/FLC777/GLAT / parse_checkpoints

Function parse_checkpoints

scripts/rm_pt.py:19–29  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

17
18
19def parse_checkpoints(files):
20 entries = []
21 for f in files:
22 m = pt_regexp_epoch_based.fullmatch(f)
23 if m is not None:
24 entries.append((int(m.group(1)), m.group(0)))
25 else:
26 m = pt_regexp_update_based.fullmatch(f)
27 if m is not None:
28 entries.append((int(m.group(1)), m.group(0)))
29 return entries
30
31
32def last_n_checkpoints(files, n):

Callers 2

last_n_checkpointsFunction · 0.85
every_n_checkpointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected