Skip to main content

agilent-decode

Python package for extracting Agilent CDS DAD data from .dx archives.

Installation

From repository root:

pip install .

For editable install during development:

pip install -e .

Package usage

from pathlib import Path
from agilent_decode import CDSExtractor

reader = CDSExtractor()
intensities, time_slices, wavelengths = reader.extract_dad(Path("sample_data.dx"))
  • intensities: 2D numpy array shaped (n_scans, n_wavelengths)
  • time_slices: 1D numpy array of scan times in minutes
  • wavelengths: 1D numpy array of wavelengths in nm

Demo script

demo/demo.py reproduces the old if __name__ == "__main__" workflow but writes decoded data to .npz instead of printing values.

Run:

python demo/demo.py sample_data.dx -o decoded_output.npz

Saved fields in the .npz:

  • intensities
  • time_slices
  • wavelengths

Project layout

  • src/agilent_decode/: installable package source
  • demo/demo.py: command-line demo script
  • data/: sample assets

Download files

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

Source Distribution

agilent_decode-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agilent_decode-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agilent_decode-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.11

File hashes

Hashes for agilent_decode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2dcca60d59655c106823b77b4c0ad590bfe2ef0bf6296d05e0c79d1363999d19
MD5 66566daf48b5a1d77096551b1413196f
BLAKE2b-256 ebb103c7993c7a72d4df6db601ac2c8651ceb4ed0fd902ff92e2961c8506c9fd

See more details on using hashes here.

File details

Details for the file agilent_decode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agilent_decode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.11

File hashes

Hashes for agilent_decode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28ce213c9a54e3e1f2ed1e95cc05f924d616cd82898a823baef6d2b04d46b1b7
MD5 5b525235a51146239c74b2fb33b36c58
BLAKE2b-256 4e27fa7586cc9e97eb70842c601d0d3e492b1b5c2d745062c0125fea060aff13

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page