MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / test_fit_xrf_block

Function test_fit_xrf_block

pyxrf/core/tests/test_map_processing.py:837–853  ·  view source on GitHub ↗
(dataset_params, add_pts_before, add_pts_after, use_snip)

Source from the content-addressed store, hash-verified

835@pytest.mark.parametrize("use_snip", [False, True])
836# fmt: on
837def test_fit_xrf_block(dataset_params, add_pts_before, add_pts_after, use_snip):
838 ft = _FitXRFMapTesting(
839 dataset_params=dataset_params,
840 use_snip=use_snip,
841 add_pts_before=add_pts_before,
842 add_pts_after=add_pts_after,
843 )
844
845 data_out = _fit_xrf_block(
846 ft.data_input,
847 data_sel_indices=ft.data_sel_indices,
848 matv=ft.spectra,
849 snip_param=ft.snip_param,
850 use_snip=use_snip,
851 )
852
853 ft.verify_fit_output(data_out=data_out, snip_param=ft.snip_param)
854
855
856@pytest.mark.usefixtures("_start_dask_client")

Callers

nothing calls this directly

Calls 3

_fit_xrf_blockFunction · 0.90
_FitXRFMapTestingClass · 0.85
verify_fit_outputMethod · 0.80

Tested by

no test coverage detected