MCPcopy Create free account
hub / github.com/Victorletzelter/timeMCL / split_run_name

Function split_run_name

tsExperiments/scripts_plot/plotting.py:329–335  ·  view source on GitHub ↗
(run_name)

Source from the content-addressed store, hash-verified

327 if suffix is not None:
328 runs = [run for run in runs if suffix in run]
329 def split_run_name(run_name):
330 # Extrac
331 if f'seed' in run_name:
332 return time.strptime(run_name.split(f'seed')[0][:-1], '%Y-%m-%d_%H-%M-%S')
333 else:
334 # ignore the run name by setting an early date
335 return time.strptime('1970-01-01_00-00-00', '%Y-%m-%d_%H-%M-%S')
336 runs = sorted(runs, key=split_run_name)
337 if len(runs) == 0:
338 print(f"No runs found for {dataset} {model} {num_hyps} {suffix}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected