def import_data_func():
    SCIM_006 = load(join(DATA_DIR, 'Machine', 'SCIM_006.json'))
    simu = Simu1(name='test_plots', machine=SCIM_006)
    mat_file_Br = join(TEST_DATA_DIR, 'Plots', 'default_proj_Br.mat')
    mat_file_time = join(TEST_DATA_DIR, 'Plots', 'default_proj_time.mat')
    mat_file_angle = join(TEST_DATA_DIR, 'Plots', 'default_proj_angle.mat')
    mat_file_Br_cfft2 = join(TEST_DATA_DIR, 'Plots', 'default_proj_Br_cfft2.mat')
    mat_file_Brfreqs = join(TEST_DATA_DIR, 'Plots', 'default_proj_Brfreqs.mat')
    mat_file_Brwavenumber = join(TEST_DATA_DIR, 'Plots', 'default_proj_Brwavenumber.mat')
    if (not isfile(mat_file_Br)):
        import urllib.request
        url = 'https://www.pyleecan.org/Data/default_proj_Br.mat'
        urllib.request.urlretrieve(url, mat_file_Br)
    if (not isfile(mat_file_Br_cfft2)):
        import urllib.request
        url = 'https://www.pyleecan.org/Data/default_proj_Br_cfft2.mat'
        urllib.request.urlretrieve(url, mat_file_Br_cfft2)
    data = {}
    data['SCIM_006'] = SCIM_006
    data['simu'] = simu
    data['flux'] = ImportMatlab(mat_file_Br, var_name='XBr')
    data['time'] = ImportMatlab(mat_file_time, var_name='timec')
    data['angle'] = ImportMatlab(mat_file_angle, var_name='alpha_radc')
    data['flux_FT'] = ImportMatlab(mat_file_Br_cfft2, var_name='Fwr')
    data['freqs'] = ImportMatlab(mat_file_Brfreqs, var_name='freqs')
    data['wavenumber'] = ImportMatlab(mat_file_Brwavenumber, var_name='orders')
    data['N0'] = 2000
    data['Id_ref'] = 10
    data['Iq_ref'] = (- 10)
    data['freq_max'] = 2000
    data['r_max'] = 78
    return data
def import_data_func():
    SCIM_006 = load(join(DATA_DIR, 'Machine', 'SCIM_006.json'))
    simu = Simu1(name='test_plots', machine=SCIM_006)
    mat_file_Br = join(TEST_DATA_DIR, 'Plots', 'default_proj_Br.mat')
    mat_file_time = join(TEST_DATA_DIR, 'Plots', 'default_proj_time.mat')
    mat_file_angle = join(TEST_DATA_DIR, 'Plots', 'default_proj_angle.mat')
    mat_file_Br_cfft2 = join(TEST_DATA_DIR, 'Plots', 'default_proj_Br_cfft2.mat')
    mat_file_Brfreqs = join(TEST_DATA_DIR, 'Plots', 'default_proj_Brfreqs.mat')
    mat_file_Brwavenumber = join(TEST_DATA_DIR, 'Plots', 'default_proj_Brwavenumber.mat')
    if (not isfile(mat_file_Br)):
        import urllib.request
        url = 'https://www.pyleecan.org/Data/default_proj_Br.mat'
        urllib.request.urlretrieve(url, mat_file_Br)
    if (not isfile(mat_file_Br_cfft2)):
        import urllib.request
        url = 'https://www.pyleecan.org/Data/default_proj_Br_cfft2.mat'
        urllib.request.urlretrieve(url, mat_file_Br_cfft2)
    data = {}
    data['SCIM_006'] = SCIM_006
    data['simu'] = simu
    data['flux'] = ImportMatlab(mat_file_Br, var_name='XBr')
    data['time'] = ImportMatlab(mat_file_time, var_name='timec')
    data['angle'] = ImportMatlab(mat_file_angle, var_name='alpha_radc')
    data['flux_FT'] = ImportMatlab(mat_file_Br_cfft2, var_name='Fwr')
    data['freqs'] = ImportMatlab(mat_file_Brfreqs, var_name='freqs')
    data['wavenumber'] = ImportMatlab(mat_file_Brwavenumber, var_name='orders')
    data['N0'] = 2000
    data['Id_ref'] = 10
    data['Iq_ref'] = (- 10)
    data['freq_max'] = 2000
    data['r_max'] = 78
    return data