Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions blacs/experiment_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import threading
import time
import datetime
import sys
import shutil
from collections import defaultdict
Expand Down Expand Up @@ -722,7 +723,7 @@ def restart_function(device_name):
# A Queue for event-based notification of when the experiment has finished.
experiment_finished_queue = queue.Queue()
logger.debug('About to start the master pseudoclock')
run_time = time.localtime()
run_time = datetime.datetime.now()

##########################################################################################################################################
# Plugin callbacks #
Expand Down Expand Up @@ -850,7 +851,7 @@ def restart_function(device_name):

data_group = hdf5_file['/'].create_group('data')
# stamp with the run time of the experiment
hdf5_file.attrs['run time'] = time.strftime('%Y%m%dT%H%M%S',run_time)
hdf5_file.attrs['run time'] = run_time.strftime('%Y%m%dT%H%M%S.%f')

error_condition = False
response_list = {}
Expand Down