XANES package
Project description
Presentation of THORONDOR, a program for data analysis and treatment in NEXAFS
Authors : Simonne and Martini
The Program is meant to be imported as a python package, if you download it, please save the THORONDOR folder in ...\Anaconda3\Lib\site-packages
The installation command can be found here : https://pypi.org/project/THORONDOR/
To keep the package up to date, please use the following command : pip install THORONDOR -U
There are two main classes at the core of THORONDOR:
The class Dataset
A new instance of the Dataset class will be initialized for each Dataset saved in the data folder. This object is then saved in the list "ClassList", attribute of the second class "GUI". For each Dataset, all the different dataframes that will be created as well as specific information e.g. the edge jump E0 can be found as attributes of this class. Certain attributes are instanced directly with the class, such as:
- Name of Dataset
- Path of original dataset
- Timestamp
At the end of the data reduction, each Dataset should have at least three different data sets as attributes, saved as pandas.DataFrame()
:
- Renamed data : Original data
- Shifted data : If one shifts the energy
- Reduced data : If one applies some background reduction or normalization method
A Logbook entry might also be associated, under Dataset.LogbookEntry
, this is done via the GUI, the logbook should be in the common excel formats.
It is possible to add commentaries for each Dataset by using the Dataset.Comment()
and to specify some additional information with the function Dataset.AdditionalInfo()
.
Each Dataset can be retrieved by using the function Dataset.unpickle()
with the path of the saved Class as an argument. This is the recommended way to share the data, since it comes with all the metadata linked to the data collection and analysis.
The class GUI
This class is a Graphical User Interface (GUI) that is meant to be used to process nulerous XAS datasets, that focus on similar energy range and absorption edge. There are two ways of initializing the procedure in a jupyter notebook:
GUI = THORONDOR.GUI()
; one will have to write the name of the data folder in which all his raw datasets are saved in a common data format (.txt, .dat, .csv, .xlsx).GUI = THORONDOR.GUI.GetClassList(DataFolder = "<yourdatafolder>")
; if one has already worked on a folder and wishes to retrieve his work.
This class makes extensive use of the ipywidgets and is thus meant to be used with a jupyter notebook. Additional informations concerning the use of the GUI functions are provided in the "ReadMe" tab of the GUI. One may also access method information through the python help
built-in function.
All the different attributes of this class can also be exported in a single hdf5 file using the pandas .to_hdf5
methods. They should then be accessed using the read_hdf
methods.
The necessary Python packages are : numpy, pandas, matplotlib, glob, errno, os, shutil, ipywidgets, IPython, scipy, datetime, importlib, pickle, lmfit, encee and inspect.
Citation and additional details
THORONDOR: software for fast treatment and analysis of low-energy XAS dat. Simonne, D.H., Martini, A., Signorile, M., Piovano, A., Braglia, L., Torelli, P., Borfecchia, E. & Ricchiardi, G. (2020). J. Synchrotron Rad. 27, https://doi.org/10.1107/S1600577520011388.
FlowChart
Tutorial
Please follow the following architecture when using the software
For users on Jupyter Lab, please follow this thread : https://stackoverflow.com/questions/49542417/how-to-get-ipywidgets-working-in-jupyter-lab
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file THORONDOR-0.2.4.8.tar.gz
.
File metadata
- Download URL: THORONDOR-0.2.4.8.tar.gz
- Upload date:
- Size: 566.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94cdad869fc50ebac41ba966a6092cad60535f597c5a35ed01aa6641d7304bd8 |
|
MD5 | 087137e1dd0d023043b5913775e90024 |
|
BLAKE2b-256 | 21a45ff11d2151ecf787e13ce6dd6745d9bf59ef1ad7cb415bc99e6727e30d94 |
File details
Details for the file THORONDOR-0.2.4.8-py3-none-any.whl
.
File metadata
- Download URL: THORONDOR-0.2.4.8-py3-none-any.whl
- Upload date:
- Size: 667.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8965eca782df8e4a948ea8e0e364fe09043890276f661e76e153fc9dfeeda668 |
|
MD5 | 3f44651ab57d8cd58fe81e223ea039e6 |
|
BLAKE2b-256 | c63cd4cb69e487b8b4dc59be840296754bf3e4fed6510385322f7188c168f754 |