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

Intermitted error in test_datasaver_scalars #4666

Open
jenshnielsen opened this issue Sep 29, 2022 · 0 comments
Open

Intermitted error in test_datasaver_scalars #4666

jenshnielsen opened this issue Sep 29, 2022 · 0 comments
Labels

Comments

@jenshnielsen
Copy link
Collaborator

    @settings(max_examples=5, deadline=None,
              suppress_health_check=(HealthCheck.function_scoped_fixture,))
    @given(breakpoint=hst.integers(min_value=1, max_value=19),
           write_period=hst.floats(min_value=0.1, max_value=1.5),
           set_values=hst.lists(elements=hst.floats(), min_size=20, max_size=20),
           get_values=hst.lists(elements=hst.floats(), min_size=20, max_size=20))
    @pytest.mark.usefixtures('set_default_station_to_none')
    def test_datasaver_scalars(experiment, DAC, DMM, set_values, get_values,
                               breakpoint, write_period):
        no_of_runs = len(experiment)
    
        station = qc.Station(DAC, DMM)
    
        meas = Measurement(station=station)
        meas.write_period = write_period
    
        assert meas.write_period == write_period
    
        meas.register_parameter(DAC.ch1)
        meas.register_parameter(DMM.v1, setpoints=(DAC.ch1,))
    
        with meas.run() as datasaver:
            for set_v, get_v in zip(set_values[:breakpoint],
                                    get_values[:breakpoint]):
                datasaver.add_result((DAC.ch1, set_v), (DMM.v1, get_v))
    
            assert datasaver._dataset.number_of_results == 0
            sleep(write_period * 1.1)
            datasaver.add_result((DAC.ch1, set_values[breakpoint]),
                                 (DMM.v1, get_values[breakpoint]))
>           assert datasaver.points_written == breakpoint + 1
E           assert 0 == (1 + 1)
E            +  where 0 = <qcodes.dataset.measurements.DataSaver object at 0x000002006588C8B0>.points_written

See details in the log below.

errorlog.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant