Skip to main content

1D to 2D (Continuous Wavelet Transform) infrared spectra converter

Project description

Uhina

Converts 1D infrared spectra to 2D (Continuous Wavelet Transform) representations.

Developer Guide

If you are new to using nbdev here are some useful pointers to get you started.

Install uhina in Development mode

# make sure uhina package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to uhina
$ nbdev_prepare

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/franckalbinet/uhina.git

or from pypi

$ pip install uhina

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines o pypi respectively.

How to use

usage: uh [-h] [--img_dir IMG_DIR] [--dataset DATASET] [--spectra_type SPECTRA_TYPE] [--analytes ANALYTES] [--n_samples N_SAMPLES] [--batch_size BATCH_SIZE]
          src dir_out

Convert spectra to wavelet images.

positional arguments:
  src                          Source file
  dir_out                      Output root directory

options:
  -h, --help                   show this help message and exit
  --img_dir IMG_DIR            Image directory (default: img)
  --dataset DATASET            Dataset to use (default: ossl)
  --spectra_type SPECTRA_TYPE  Spectra type to use (default: mir)
  --analytes ANALYTES          Analytes to use (default: k.ext_usda.a725_cmolc.kg)
  --n_samples N_SAMPLES        Number of samples to use
  --batch_size BATCH_SIZE      Batch size to use (default: 10)

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

uhina-0.0.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

uhina-0.0.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file uhina-0.0.3.tar.gz.

File metadata

  • Download URL: uhina-0.0.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for uhina-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8eeacaad61fe0491b02921a9371dac0f14c40f52ebbf30d1950adb279fafba88
MD5 49f7f5e196ad88007daee85605efde88
BLAKE2b-256 865eb68f7318afaa754b337e9e5543195bd5f12cd8cea45163660473a2f7ebde

See more details on using hashes here.

File details

Details for the file uhina-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: uhina-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for uhina-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5401efab3c7273564045b1bef5fdaff587027159bd6dfc4d0663774b1f78bb0b
MD5 c6cd1e12f38a49ce9aa4a463408e6a52
BLAKE2b-256 1f34a3cb4ede703a033a11456a275c58cf9a584d79481f3b611f69bca7f8f30f

See more details on using hashes here.

Supported by

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