Commit e59978ba authored by payno's avatar payno

[core][test] add preprocessing function before calling ft

parent 56b79657
......@@ -31,6 +31,8 @@ import unittest
from xas.core.process.ft import pymca_ft
from PyMca5.PyMcaDataDir import PYMCA_DATA_DIR
from xas.core.utils.pymca import read_spectrum
from xas.core.process.normalization import pymca_normalization
from xas.core.process.exafs import pymca_exafs
from xas.core.types import XASObject, Spectrum
import os
......@@ -43,6 +45,9 @@ class TestFTSingleSpectrum(unittest.TestCase):
self.spectrum = Spectrum(energy=energy, mu=mu)
self.xas_obj = XASObject(energy=energy, spectra=(self.spectrum,),
dim1=1, dim2=1)
# preproc xas obj
self.xas_obj = pymca_normalization(xas_obj=self.xas_obj)
self.xas_obj = pymca_exafs(xas_obj=self.xas_obj)
def testPyMcaXASAsInput(self):
res = pymca_ft(xas_obj=self.xas_obj)
......
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