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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| easy_pues-0.1.1.tar.gz | 8.7 kB | Without provenance | Details for easy_pues-0.1.1.tar.gz |
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
|
Security for easy-pues 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.