Skip to main content

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.logbook_entry, 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.metadata().

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 Interface (used to be 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.Interface(); 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.Interface.get_class_list(data_folder = "<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 Interface functions are provided in the "ReadMe" tab. 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. A .nxs format support is in development.

The necessary Python packages are : numpy, pandas, matplotlib, ipywidgets, iPython, scipy, lmfit, emcee, thorondor and pytables.

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

FlowChart

Please follow the following architecture when using the software

Architecture1

For users on Jupyter Lab, please follow this thread : https://stackoverflow.com/questions/49542417/how-to-get-ipywidgets-working-in-jupyter-lab

(perhaps outdated)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thorondor-0.3.23.tar.gz (748.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thorondor-0.3.23-py3-none-any.whl (831.8 kB view details)

Uploaded Python 3

File details

Details for the file thorondor-0.3.23.tar.gz.

File metadata

  • Download URL: thorondor-0.3.23.tar.gz
  • Upload date:
  • Size: 748.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for thorondor-0.3.23.tar.gz
Algorithm Hash digest
SHA256 e81a519d93fa1066b5891bdda7e8723678b3a83984b8ea9b22d8c4c3011992c2
MD5 4caf51e482704518956d92d43c4001bf
BLAKE2b-256 9505d8ef2343594f1068ce01d3d1d77419e5e195ffdd07621775b189647764e5

See more details on using hashes here.

File details

Details for the file thorondor-0.3.23-py3-none-any.whl.

File metadata

  • Download URL: thorondor-0.3.23-py3-none-any.whl
  • Upload date:
  • Size: 831.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for thorondor-0.3.23-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a1764a7ff1653aea208b112503274ace30fc4361b3ef748b0f15ccd7519169
MD5 f31f189ea734c5a4d646f3ce8eee2593
BLAKE2b-256 bfa55d7c06238248c08d93d3c43e236cfacbff308dc68fe184408ee4d45bc12b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.2

1 file

0.4.1

1 file

0.4

1 file

0.3.40

1 file

0.3.30

2 files

This release

0.3.23 This release

2 files

0.3.22

2 files

0.3.21

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3

2 files

0.2.4.9

2 files

0.2.4.8

2 files

0.2.4.7

2 files

0.2.4.6

2 files

0.2.4.5

2 files

0.2.4.4

2 files

0.2.4.3

2 files

0.2.4.2

2 files

0.2.4.1

2 files

0.2.4.0

2 files

0.2.3.5

2 files

0.2.3.4

2 files

0.2.3.3

2 files

0.2.3.2

2 files

0.2.3.1

2 files

0.2.3.0

2 files

0.2.2.0

2 files

0.2.1.0

2 files

0.2.0.0

2 files

0.1.2.0

2 files

0.1.1.1

2 files

0.1.1.0

2 files

0.1.0.1

2 files

0.1.0

2 files

0.0.252

2 files

0.0.251

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page