Skip to main content

Area detector corrections as pure python functions.

Project description

Code CI Docs CI Test Coverage Latest PyPI version Apache License

This package provides a set of pure python functions for performing corrections on area detector data.

PyPI

pip install adcorr

Source code

https://github.com/garryod/adcorr

Documentation

https://garryod.github.io/adcorr

Releases

https://github.com/garryod/adcorr/releases

A brief example of performing corrections using the library is presented below:

frames = load_my_frames()
mask = load_my_mask()
count_times = load_count_times()

frames = mask_frames(frames, mask)
frames = correct_deadtime(
    frames,
    count_times,
    DETECTOR_MINIMUM_PULSE_SEPARATION,
    DETECTOR_MINIMUM_ARRIVAL_SEPARATION,
)
frames = correct_dark_current(
    frames,
    count_times,
    BASE_DARK_CURRENT,
    TEMPORAL_DARK_CURRENT,
    FLUX_DEPENDANT_DARK_CURRENT,
)
...

See https://garryod.github.io/adcorr for more detailed documentation.

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

adcorr-0.1.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

adcorr-0.1.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adcorr-0.1.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for adcorr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c85da8f8930a7340ba641ecded37aee913d8fb052927065a4731e7de31a21ab
MD5 efb78c23e0a38054b17c92add0afdcad
BLAKE2b-256 6e326026a4f475415610618a141de4b5d593278a98cc01ebdd16cacaa0c27284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adcorr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for adcorr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfd9ea6c1e0abe4c6177cfbf6e120fdc1c33c8979e6e4e5febd0017c9bcad9a
MD5 ecefe75eebc23ee28edaba1f595107f8
BLAKE2b-256 655dc05b3f995475e99d1863877056d2247e71a091b857049fc41285a8ca0444

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