Skip to content

Commit

Permalink
jt ls lists experiments sorted by time.
Browse files Browse the repository at this point in the history
  • Loading branch information
maharshi95 committed Aug 5, 2023
1 parent 2e77fa2 commit 706926f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/jt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def list_experiments():

exp_names = os.listdir(utils.EXPERIMENTS_ROOT_DIR)
exp_names = filter(lambda x: utils.JTExp(x).exists(), exp_names)
exp_names = sorted(exp_names, key=lambda x: os.path.getmtime(utils.JTExp(x).exp_dir), reverse=True)
table = Table(show_header=True, header_style="bold magenta", highlight=True)
table.add_column(
":test_tube: [bold yellow]Experiments", justify="center", style="turquoise2"
Expand Down

0 comments on commit 706926f

Please sign in to comment.