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.2.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

adcorr-0.2.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for adcorr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9103a49ebcabe506edd1ea23bc9b854189b0599219a96873078c57e7165db49b
MD5 0103cdcb93f98ba650257f4acacb5ed7
BLAKE2b-256 1ef129220b637fb9894524ee8173b7e28fe6f58a3c368555d91ea52a41126510

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adcorr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b922477884bb2c7f03366454174d1210390cf72449d363b18a1eed10900ece
MD5 301060dc1cf7fe2e37b024507213ab48
BLAKE2b-256 4969d4a560a0beafb2e53660d2a7657668a74fc6388f89c0868c0a0545322f14

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