NVlabs / FPSci

Aim Training Experiments
Other
70 stars 23 forks source link

Add `samples` directory for sample experiments #310

Closed jspjutNV closed 3 years ago

jspjutNV commented 3 years ago

This PR adds a samples directory which is scanned on startup to add provided sample experiments to the experimentList. This is primarily a developer-oriented feature, and won't be noticed when developerMode = false.

Closes #307

jspjutNV commented 3 years ago

I've left this as a draft until I add at least 1-2 samples. But this scan and include functionality should work already.

jspjutNV commented 3 years ago

This should be mostly ready. I did notice a minor issue that if the set of files changes in the samples directory and the user presses F5 while FPSci is running, then the old list of samples will remain. This is likely an existing issue with startupconfig changes, and unlikely to matter since users probably won't be adding new samples.