An easy package for understanding emission spectroscopy.
Project description
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
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
File details
Details for the file easy_pues-0.1.1.tar.gz.
File metadata
- Download URL: easy_pues-0.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
001844c93c86bd2252411d55b41a1db67b53d3f778908c29e227e3c463751b2e
|
|
| MD5 |
4b5179cc177e63c0f4de0ac141095c46
|
|
| BLAKE2b-256 |
71eefa5c2f8dbc60be760fdb9668ba007610ebdeb2f2d44a37c9bc674e87ad5b
|