forked from M-Labs/artiq
1
0
Fork 0

master: use full year in result folder name

This commit is contained in:
Sebastien Bourdeauducq 2015-02-21 18:34:31 -07:00
parent 965dd89b61
commit ceb02b42cb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ from artiq.protocols.sync_struct import Notifier, process_mod
def get_hdf5_output(start_time, rid, name):
dirname = os.path.join("results",
time.strftime("%y-%m-%d", start_time),
time.strftime("%Y-%m-%d", start_time),
time.strftime("%H-%M", start_time))
filename = "{:09}-{}.h5".format(rid, name)
os.makedirs(dirname, exist_ok=True)