Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #394 for #389 does not work with get_data_set #395

Closed
lpetitTUD opened this issue Nov 21, 2016 · 0 comments
Closed

Fix #394 for #389 does not work with get_data_set #395

lpetitTUD opened this issue Nov 21, 2016 · 0 comments

Comments

@lpetitTUD
Copy link

A minimal example:

import time
import numpy as np
import qcodes
from qcodes.tests.data_mocks import DataSet2D
from qcodes.tests.instrument_mocks import DummyInstrument

dataset = DataSet2D()
A = DummyInstrument(server_name='test')
sweepvalues=A.dac2[0:100:.05]

#%%
#%Loop in background
print(qcodes.get_bg())

loop=qcodes.Loop(sweepvalues, progress_interval=.2, delay=.001).each(A.dac1)
data=loop.get_data_set() # data_manager=True)
print('created dataset...')
#data=loop.run(background=True)
data=loop.run(background=True, data_manager=True)
#data=loop.run()
print('sync %s' % data.sync())
print('fraction %.3f' % data.fraction_complete())
data.complete() # should wait on data to be ready

for ii in range(20):    
    data.sync()
    print('sync %s' % data.sync())
    print('fraction %.3f' % data.fraction_complete())
    time.sleep(0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants