Skip to main content

PyPI - License version Documentation Status PyPI

                                           1
                111111                    1221  21
              112222111       112211 2    11222331113
             11211  1211    1122333222     12321  1211
             1221   1211    1231  1221      2321   1221
             1221   1221    1232  1221      2321   1121
             1221  11221    1231   2321     13211  113
             1112211211     1121  12321    1123332111
               111111        111211 121    1123211
                                            1221    1
                                            121
                                            111
                                             1
____________________________________________________________________
                                                      Version 0.0.14
Optical Array Processing (oap)
Licensed under the MIT license (see `LICENSE` file)

A transparent library for processing and analyzing individual
images of Optical Array Probes (OAPs)

Author:         Lucas Grulich
Last Update:    June 20, 2021

Introduction

The oap library is a transparent tool, written in Python and C, for working directly with image data from Optical Array Probes. It was initially developed for the preparation and classification of image data with neural networks.

This software is still in the alpha phase and will be further developed at irregular intervals! Comments on this project are always welcome! If you have suggestions for improvement, you can simply write me an email and I will try to implement them.

At the current state, the decompression algorithm has only been implemented for grayscale probes by Droplet Measurement Technologies (DMT).

  • DMT Monoscale Decompression coming next!

The complete documentation can be found at https://oap.readthedocs.io

Installation

The oap library is available on PyPi, so simply open a terminal window and type at the prompt:

pip install oap

I always recommend the use of virtual environments (e.g. venv & pipenv) to avoid destroying your Python installation.

But if you don't want to work with virtual environments and still don't want to mess up your system directories, install the library as a user:

pip install oap --user

Usage

A short code snippet that decompresses an OAP imagefile and outputs the first 100 images to the console:

from oap import Imagefile

imagefile = Imagefile("Imagefile20200830120000")

# search for columns and rosettes
imagefile.classify()

# plot number of particles per flight second
imagefile.plot()

# plot number of rosettes per flight second
imagefile.plot(r=(0.5, 1))

# get all optical arrays containing particles of size
# 100 to 200 micrometers (area ratio) that were recorded
# between flight seconds 20000 and 22000.
array_list = imagefile.get_arrays(timespan=(20000, 22000),
                                  area_ratio=(100, 200))

# print particle images
for array in array_list:
    array.print()

Initialization & Compilation

Prerequisites

  • Python >= 3.7
  • Pipenv
pipenv install
python setup.py install

Metadata

Release files for oap 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oap 0.0.14
File Size Uploaded
oap-0.0.14.tar.gz 929.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oap 0.0.14
File Interpreter ABI Platform
oap-0.0.14-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details

Total release size: 1.9 MB

Release files / oap-0.0.14.tar.gz

Download URL oap-0.0.14.tar.gz
Size 929.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9ff37ed7eb2c3bc7a541bdb66a0f5d0e4836bebbdbe638f497edbc5c93ef7e59
BLAKE2b-256 checksum
How to use checksums
63b1f90a11656595989e43428fceb1bb276ee5b5aab341cabe673550cc30aced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.7

Release files / oap-0.0.14-cp38-cp38-win_amd64.whl

Download URL oap-0.0.14-cp38-cp38-win_amd64.whl
Size 952.8 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2c594b8901c292971931701cd0efda2c30896d30079973ab5914a58c7266a467
BLAKE2b-256 checksum
How to use checksums
9c9e9595f1c27958bc54a417f747f1c9ee67dcfd4234957edca2f0f37a5a4f70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.7

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.13

2 release files

0.0.11

2 release 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