Commit dfc9d6a6 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema

Use utcnow from datetime

parent 0ffd155f
...@@ -10,7 +10,7 @@ NUM_RCU = 96 ...@@ -10,7 +10,7 @@ NUM_RCU = 96
# uses a decorator to automatically convert to and from variants # uses a decorator to automatically convert to and from variants
@uamethod @uamethod
def get_crosslet_statistics(parent, subband, integration_time): def get_crosslet_statistics(parent, subband, integration_time):
import time from datetime import datetime
print("Ask to record subband {} with integration time {}".format(subband, print("Ask to record subband {} with integration time {}".format(subband,
integration_time)) integration_time))
set_xcsubband(subband) set_xcsubband(subband)
...@@ -24,7 +24,7 @@ def get_crosslet_statistics(parent, subband, integration_time): ...@@ -24,7 +24,7 @@ def get_crosslet_statistics(parent, subband, integration_time):
crosslets[1, :, :] = crosslets_complex.imag crosslets[1, :, :] = crosslets_complex.imag
crosslets = crosslets.tolist() crosslets = crosslets.tolist()
timestamp = time.utcnow() timestamp = datetime.utcnow()
rcu = res['rcus'] rcu = res['rcus']
rcus_mode = [rcu[i]["mode"] for i in rcu] rcus_mode = [rcu[i]["mode"] for i in rcu]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment