radis.test.spectrum.test_utils moduleΒΆ

Created on Tue Jul 27 02:04:14 2021

@author: erwan

test_perf_profile(*args, **kwargs)[source]ΒΆ

Test visual/interactive performance profile

Examples

::

s = calc_spectrum(…) s.print_perf_profile()

# output >>
spectrum_calculation 0.189s β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ

check_line_databank 0.000s check_non_eq_param 0.042s β–ˆβ–ˆβ–ˆ fetch_energy_5 0.015s β–ˆ calc_weight_trans 0.008s reinitialize 0.002s

copy_database 0.000s memory_usage_warning 0.002s reset_population 0.000s

calc_noneq_population 0.041s β–ˆβ–ˆβ–ˆ

part_function 0.035s β–ˆβ–ˆ population 0.006s

scaled_non_eq_linestrength 0.005s

map_part_func 0.001s corrected_population_se 0.003s

calc_emission_integral 0.006s applied_linestrength_cutoff 0.002s calc_lineshift 0.001s calc_hwhm 0.007s generate_wavenumber_arrays 0.001s calc_line_broadening 0.074s β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ

precompute_DLM_lineshapes 0.012s DLM_Initialized_vectors 0.000s DLM_closest_matching_line 0.001s DLM_Distribute_lines 0.001s DLM_convolve 0.060s β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ others 0.001s

calc_other_spectral_quan 0.003s generate_spectrum_obj 0.000s others -0.016s

Generate a graphical, explorative perf profile (requires tuna installed)

s.generate_perf_profile()

See output of generate_perf_profile() in https://github.com/radis/radis/pull/325

test_perf_profile_from_factory(*args, **kwargs)[source]ΒΆ

See radis.test.spectrum.test_utils.test_perf_profile()