Commit 13f717a6 authored by payno's avatar payno

[core][test] add workflow test using the dictionay instead of the XASObject

parent e59978ba
......@@ -47,8 +47,20 @@ class TestStreamSingleSpectrum(unittest.TestCase):
channel_url=DataUrl(file_path=data_file,
scheme='PyMca'))
out = pymca_normalization(xas_obj=out)
out = pymca_exafs(xas_obj=out)
out = pymca_k_weight(xas_obj=out)
out = pymca_ft(xas_obj=out)
assert out is not None
def test_pymca_process_with_dict(self):
data_file = os.path.join(PYMCA_DATA_DIR, "EXAFS_Cu.dat")
out = read_pymca_xas(spectra_url=DataUrl(file_path=data_file,
scheme='PyMca'),
channel_url=DataUrl(file_path=data_file,
scheme='PyMca'))
out = pymca_normalization(xas_obj=out.to_dict())
out = pymca_exafs(xas_obj=out)
out = pymca_k_weight(xas_obj=out)
out = pymca_ft(xas_obj=out)
assert out is not None
......@@ -59,8 +71,8 @@ class TestStreamSingleSpectrum(unittest.TestCase):
channel_url=DataUrl(file_path=data_file,
scheme='PyMca'))
out = PyMca_normalization()(xas_obj=out)
out = PyMca_k_weight()(xas_obj=out)
out = PyMca_exafs()(xas_obj=out)
out = PyMca_k_weight()(xas_obj=out)
out = PyMca_ft()(xas_obj=out)
assert out is not None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment