Skip to main content

adcorr

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.

Install via PyPI with:

pip install adcorr

Brief Example

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,
)
...

Library Compatibility

Library

Tests

Coverage

numcertain

Numcertain Compatibility Test Outcome

Numcertain Compatibility Test Coverage

Pint

Pint Compatibility Test Outcome

Pint Compatibility Test Coverage

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

Metadata

Release files for adcorr 0.2.1

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

Source distribution (sdist)

Source distribution for adcorr 0.2.1
File Size Uploaded
adcorr-0.2.1.tar.gz 60.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adcorr 0.2.1
File Interpreter ABI Platform
adcorr-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 83.9 kB

Release files / adcorr-0.2.1.tar.gz

Download URL adcorr-0.2.1.tar.gz
Size 60.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b5f6dac7b255ae1162240ffa48e2ce0fb355cfeec189c1ac5315570d1d411bde
BLAKE2b-256 checksum
How to use checksums
0c4d66edd4b36dc7e416a5af12f8c2d26042ca51cbfa0e81f6f9c55705844ef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / adcorr-0.2.1-py3-none-any.whl

Download URL adcorr-0.2.1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80d40c40d2bb5684808b6326599dc305032c35afea43a1094f9fa8d1acf283b3
BLAKE2b-256 checksum
How to use checksums
41bad4566c1a22141a5568d6b2a6435c1dd650c86473d2711a648a76becc82fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

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