Commit cbb32885 authored by payno's avatar payno

[doc] fix notebook since we can process several spectra

parent 4fffba11
......@@ -225,8 +225,8 @@
"from silx.io.url import DataUrl\n",
"spec_url = DataUrl(file_path=data_file, scheme='PyMca')\n",
"print(spec_url.scheme())\n",
"xas_obj = read_pymca_xas(spectrum_url=DataUrl(file_path=data_file, scheme='PyMca'))\n",
"assert 'Mu' in xas_obj.spectrum"
"xas_obj = read_pymca_xas(spectra_url=DataUrl(file_path=data_file, scheme='PyMca'), channel_url=DataUrl(file_path=data_file, scheme='PyMca'))\n",
"assert 'Mu' in xas_obj.spectra[0]"
]
},
{
......@@ -244,7 +244,7 @@
"source": [
"from xas.core.process.normalization import pymca_normalization\n",
"xas_obj = pymca_normalization(xas_obj.copy())\n",
"assert 'NormalizedMu' in xas_obj.spectrum"
"assert 'NormalizedMu' in xas_obj.spectra[0]"
]
},
{
......@@ -262,7 +262,7 @@
"source": [
"from xas.core.process.exafs import pymca_exafs\n",
"xas_obj = pymca_exafs(xas_obj.copy())\n",
"assert 'PostEdgeB' in xas_obj.spectrum"
"assert 'PostEdgeB' in xas_obj.spectra[0]"
]
},
{
......@@ -283,7 +283,7 @@
"l_xas_obj.configuration['SET_KWEIGHT'] = 1\n",
"\n",
"xas_obj = pymca_k_weight(l_xas_obj)\n",
"assert xas_obj.spectrum['KWeight'] == 1"
"assert xas_obj.spectra[0]['KWeight'] == 1"
]
},
{
......@@ -301,7 +301,7 @@
"source": [
"from xas.core.process.ft import pymca_ft\n",
"xas_obj = pymca_ft(xas_obj.copy())\n",
"assert 'FTRadius' in xas_obj.spectrum['FT']"
"assert 'FTRadius' in xas_obj.spectra[0]['FT']"
]
},
{
......@@ -378,14 +378,18 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
""
]
}
],
"metadata": {
......@@ -397,7 +401,7 @@
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 3.0
},
"file_extension": ".py",
"mimetype": "text/x-python",
......@@ -408,5 +412,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 0
}
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