netj / 3x

3X — a Workbench for eXecutable eXploratory eXperiments
http://netj.github.io/3x/
21 stars 4 forks source link

Delete past runs #2

Closed mhortis closed 10 years ago

mhortis commented 10 years ago

Hello.

I would like to know if there is a way to delete past runs, or re-initialize an experiment. I tried removing the runs from the run/ directory but with no luck.

Thanks, Michalis

netj commented 10 years ago

Sure, there is a way to archive past runs from the command-line. (Sorry, it's not documented yet)

Here's the command you would run under the experiment repository to basically reset an experiment:

3x archive run/

It will display which runs have been moved to the archive/ directory under your repository. The archived runs will disappear from the GUI as well.

To restore all your runs back from the archive, you can run:

3x unarchive archive/

Instead of passing run/ and archive/, you can specify the particular runs (or directories that contain the runs) you want to archive and unarchive , e.g., run/2013/1209/12/3352.796822000-99 or archive/run/2014/0121/*.

Alternatively, if you have already removed the runs from the repository by hand (e.g., using rm -rf), you can rebuild 3X's index with the following command:

3x index rebuild

These instructions shall go into the documentation soon, and we'll make archiving runs possible from the GUI sometime later.

Hope this helps, ~Jaeho