CryptAL commited on
Commit
029e78d
·
1 Parent(s): 299995d

Set benchmark to the latest wandb run

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -291,7 +291,7 @@ def get_benchmarks() -> Tuple[pd.DataFrame, datetime.datetime]:
291
  bt.logging.error("No benchmark project set.")
292
  return None, None
293
  runs = get_wandb_runs(project=BENCHMARK_WANDB_PROJECT, filters=None)
294
- for run in runs:
295
  artifacts = list(run.logged_artifacts())
296
  if artifacts:
297
  table = artifacts[-1].get("benchmarks")
 
291
  bt.logging.error("No benchmark project set.")
292
  return None, None
293
  runs = get_wandb_runs(project=BENCHMARK_WANDB_PROJECT, filters=None)
294
+ for run in runs[::-1]:
295
  artifacts = list(run.logged_artifacts())
296
  if artifacts:
297
  table = artifacts[-1].get("benchmarks")