labscript-suite-temp-2 / runmanager

runmanager is a graphical user interface (GUI) used to aid the compilation of labscript experiment scripts into hardware instructions to be executed on the hardware. Experiment parameters can be adjusted in the GUI, and lists of parameters can be used to create sequences of experiments, and scan over complex parameter spaces.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

output folder datestamp format should be configurable #11

Closed philipstarkey closed 10 years ago

philipstarkey commented 10 years ago

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


The datestamp format for the experiment output folder has changed in v2. This means new shots created do not match the folder hierarchy we have used for the last three years. It is:

I thus propose the data stamp is configurable, specified in the labconfig ini file. I recommend this just follow standard Python datetime syntax so that people can specify whatever they want (or nothing at all)

Marking this as critical as we won't use it on a production machine in our lab until this can be configured.

philipstarkey commented 10 years ago

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


Fixed in 25c9b57d85d9bc7a3ccbee4bee41aaa6bc562cdf

The shot output folder is now configurable in labconfig. If not present, it defaults to %Y/%m/%d (with slashes according to OS) It is as parsed by time.strftime() Extra percent signs are needed as escape character in labconfig due to percent symbols having special meaning in the config files:

[runmanager]
output_folder_format = %%Y-%%b/%%d

(leading or trailing slashes are irrelevant and will be stripped)