9f81753c72087db0da0e5adc0191c0181cbecf3e,featuretools/tests/computational_backend/test_calculate_feature_matrix.py,,test_calls_progress_callback,#Any#,1218

Before Change



    // test with multiple jobs
    mock_progress_callback = MockProgressCallback()
    ft.calculate_feature_matrix(features, entityset=es, progress_callback=mock_progress_callback, n_jobs=3)

    assert np.isclose(mock_progress_callback.total_update, 100.0)
    assert np.isclose(mock_progress_callback.total_progress_percent, 100.0)

After Change


    mock_progress_callback = MockProgressCallback()

    with cluster() as (scheduler, [a, b]):
        dkwargs = {"cluster": scheduler["address"]}
        ft.calculate_feature_matrix(features,
                                    entityset=es,
                                    progress_callback=mock_progress_callback,
                                    dask_kwargs=dkwargs)

    assert np.isclose(mock_progress_callback.total_update, 100.0)
    assert np.isclose(mock_progress_callback.total_progress_percent, 100.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Featuretools/featuretools
Commit Name: 9f81753c72087db0da0e5adc0191c0181cbecf3e
Time: 2019-09-16
Author: angela97lin@gmail.com
File Name: featuretools/tests/computational_backend/test_calculate_feature_matrix.py
Class Name:
Method Name: test_calls_progress_callback


Project Name: Featuretools/featuretools
Commit Name: 80286b609c446c1d9bb1af1f70056c1af727835a
Time: 2018-06-07
Author: roy.wedge@gmail.com
File Name: featuretools/tests/computational_backend/test_calculate_feature_matrix.py
Class Name:
Method Name: test_training_window


Project Name: Featuretools/featuretools
Commit Name: 97eb274a48752985cd33d62a92eef2a16c874d5b
Time: 2019-08-13
Author: ctduffy@college.harvard.edu
File Name: featuretools/tests/computational_backend/test_calculate_feature_matrix.py
Class Name:
Method Name: test_warning_not_enough_chunks