Task+widget that returns test data
Implement the following task (+widget)
class GenerateExampleData(Task, optional_input_names=["spectrum", "shape", "dimensions"], output_names=["xas_obj"]):
def run(self):
...
Use est.tests.data.example_spectrum
and est.tests.data.example_spectra
to generate the data in memory.
Note that spectrum
can be
- a string,
"exafs/EXAFS_Ge.dat"
- a tuple,
(5000, 5500, 300)
- or
None
dimensions
is a tuple, (1,2,0)
. Best to wait until !57 (merged) is merged.
Edited by Wout De Nolf