easy_pues
A lightweight toolkit for processing, cleaning, and interpreting ICP-OES analytical data.
easy_pues provides a set of convenience classes to streamline the workflow around ICP-OES data. It focuses on reading raw exports, cleaning and harmonizing element measurements, applying LOD/LOQ rules, and preparing results for downstream analysis or reporting.
The package is designed to be simple, predictable, and easy to integrate into existing Python data pipelines.
🌱 Features
- Load Agilent 5800 result files into tidy pandas DataFrames
- Automatic type conversion (strings → floats, numeric cleanup, NA handling)
- LOD/LOQ masking
- < LOD formatting
-
LOD formatting
- Optional flagging mode (*, **)
- Element-wise operations with proper alignment of LOD/LOQ tables
- Helpers for MultiIndex structures
- Utility functions for common analytical workflows
📦 Installation
pip install easy_pues
Or install directly from GitHub:
pip install git+https://github.com/AgentschapPlantentuinMeise/easy_pues
🚀 Quick Start
import easy_pues as ep
import pandas as pd
# Load results and LOD/LOQ tables
project = ep.ICPOES("results.csv")
# Apply masking
masked = project.apply_lod_loq_mask(project.results, project.lodq)
# Or apply flagging instead
flagged = project.apply_lod_loq_flags(project.results, project.lodq, flag = True)
🔬 LOD/LOQ Handling
easy_pues implements the standard interpretation rules:
| Condition | Output (mask mode) | Output (flag mode) |
|---|---|---|
| value < LOD | < LOD | value* |
| LOD ≤ value < LOQ | > LOD | value** |
| value ≥ LOQ | numeric | numeric |
All operations are vectorized and align element names automatically.
📁 Typical Workflow
- Export raw ICPOES data
- Load into Python using easy_pues
- Clean and harmonize element columns
- Apply LOD/LOQ rules
- Export masked or flagged results
Disclaimer
Developed together with Copilot AI
Release files for easy-pues 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy_pues-0.1.1.tar.gz | 8.7 kB | Details |
Release files / easy_pues-0.1.1.tar.gz
| Download URL | easy_pues-0.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
001844c93c86bd2252411d55b41a1db67b53d3f778908c29e227e3c463751b2e
|
|
BLAKE2b-256 checksum How to use checksums |
71eefa5c2f8dbc60be760fdb9668ba007610ebdeb2f2d44a37c9bc674e87ad5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|