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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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