Skip to main content

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.

Easy Pues Mascot


🌱 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

  1. Export raw ICPOES data
  2. Load into Python using easy_pues
  3. Clean and harmonize element columns
  4. Apply LOD/LOQ rules
  5. Export masked or flagged results

Disclaimer

Developed together with Copilot AI

Project details


Download files

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

Source Distribution

easy_pues-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file easy_pues-0.1.0.tar.gz.

File metadata

  • Download URL: easy_pues-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for easy_pues-0.1.0.tar.gz
Algorithm Hash digest
SHA256 503a5a405da530b6c59576104b962856d37ef782fd74ce56c2a2e03ad887fc20
MD5 9cceef8eaa50fe898c52d3a34e457459
BLAKE2b-256 d1d8319f7b41245bbf5bf8daaf2e48b440f8a47542d5d0438f3b530dc4761349

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page