labscript-suite / runmanager

𝗿𝘂𝗻𝗺𝗮𝗻𝗮𝗴𝗲𝗿 is an intuitive graphical interface for controlling 𝘭𝘢𝘣𝘴𝘤𝘳𝘪𝘱𝘵 𝘴𝘶𝘪𝘵𝘦 experiments. Includes multi-dimensional parameter scans and a remote programming interface for automation.
http://labscriptsuite.org
Other
3 stars 45 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)