Metadata-Version: 2.4
Name: niton-tools
Version: 0.2.1
Summary: Manage data from Niton XRF analyzers
Home-page: https://github.com/sarttiso/niton-tools
Author: Adrian Tasistro-Hart
Author-email: adrian@tasistro-hart.com
License: GPL-3.0-only
Project-URL: Source, https://github.com/sarttiso/niton-tools
Project-URL: Changelog, https://github.com/sarttiso/niton-tools/blob/main/changelog.md
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: importlib-metadata; python_version < "3.8"
Requires-Dist: pandas
Requires-Dist: openpyxl
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: geochemdb
Requires-Dist: ipyfilechooser
Requires-Dist: ipywidgets
Requires-Dist: matplotlib
Dynamic: license-file

# Niton Tools

This package provides a set of python tools for interacting with data generated by the Thermo Fisher Niton XL5 Plus handheld XRF device. The code is catered to XRF usage in the Macdonald lab in EAPS at UC Berkeley, but could be used or adapted by anybody working with similar handheld XRF devices.

The package provides the following functionality:
- User interface for adding standard measurements to a single SQLite database managed by [`GeochemDB`](https://github.com/sarttiso/geochemdb).
    - Assumes that standard measurements are systematically aggregated within an excel file where each sheet contains standard measurements from a single analytical session
    - Assumes a preconfigured SQLite database with filled auxililary tables and compatibility with [`GeochemDB`](https://github.com/sarttiso/geochemdb)
- Instrument calibration based on standard measurements
    - Ability to correct concentrations for unknowns according to element-specific calibration lines constrained by known standard measurements
    - Assumes standard measurements are stored in `GeochemDB`-compatible SQLite database
    - Calibrations stored as json files with metadata
    - ipywidgets-based UIs for creating and applying calibrations

## Installation

```bash
pip install niton-tools
```
