Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ewoksid27

Ewoks tasks and workflows for ID27 data processing.

Multigeometry integration

The packaged src/ewoksid27/workflows/multigeometry.json workflow runs:

PrepareMultiGeometryImages → Integrate1DMultiGeometry → SaveNexusIntegrated

The integration output also feeds ewoksxrpd.tasks.ascii.SaveAsciiPattern1D. Set save_ascii.filename to the ASCII destination. It writes radial and intensity columns, plus intensity errors when available, with units and integration settings in the header.

Preparation averages the frames within each scan, flips vertically, multiplies by an optional correction map, then sums repeated scans separately for each geometry in float64. Each group corresponds to one detector y position. The correction map is flipped as well; masks must already be in calibration coordinates. Scan inputs may be 2D images or 3D (frames, height, width) stacks, as arrays or data URLs. Set flip_vertical=False if images and correction maps already match the calibration orientation.

from importlib.resources import files
from ewokscore import execute_graph

workflow = files("ewoksid27") / "workflows" / "multigeometry.json"
execute_graph(
    str(workflow),
    inputs=[
        {
            "id": "prepare",
            "name": "image_groups",
            "value": [
                ["center1.h5::/image", "center2.h5::/image"],
                ["border1.h5::/image", "border2.h5::/image"],
            ],
        },
        {
            "id": "prepare",
            "name": "correction_map",
            "value": "correction.npy",
        },
        {
            "id": "integrate",
            "name": "poni_files",
            "value": ["center.poni", "border.poni"],
        },
        {
            "id": "integrate",
            "name": "masks",
            "value": ["center.mask", "border.mask"],
        },
        {
            "id": "integrate",
            "name": "integration_options",
            "value": {
                "nbpt_rad": 500,
                "unit": "q_A^-1",
                "radial_range_min": 0.9,
                "radial_range_max": 17.5,
                "polarization_factor": 0.99,
            },
        },
        {"id": "save", "name": "url", "value": "patterns.h5::/sample"},
        {"id": "save_ascii", "name": "filename", "value": "patterns/sample.dat"},
    ],
)

Image groups, PONI files and masks use the same geometry order. The correction map multiplies the signal, unlike a divisive flatfield. Exposure/monitor scaling and uncertainty propagation through preparation are not inferred. Geometry integration is sequential by default (threadpoolsize=0).

Blissoda should submit the workflow once all scans in a collection are complete. Run the same workflow for backgrounds, saving to a separate entry. Background subtraction can be added downstream; it is not part of this workflow.

Documentation

https://ewoksid27.readthedocs.io/

Metadata

Release files for ewoksid27 0.0.1a0

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

Source distribution (sdist)

Source distribution for ewoksid27 0.0.1a0
File Size Uploaded Provenance Actions
ewoksid27-0.0.1a0.tar.gz 10.5 kB Without provenance Details for ewoksid27-0.0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ewoksid27 0.0.1a0
File Interpreter ABI Platform Actions
ewoksid27-0.0.1a0-py3-none-any.whl Python 3 none any Details for ewoksid27-0.0.1a0-py3-none-any.whl

Total release size: 20.9 kB

Release files / ewoksid27-0.0.1a0.tar.gz

Download URL ewoksid27-0.0.1a0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
872521205529a1921542deb2c51bf83175c89c1d972dae4086c518b1c639a4de
BLAKE2b-256 checksum
How to use checksums
02495602b3724cf69da9c705bf625631743b6a347d5bc0c1abadfb3f04ed52e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / ewoksid27-0.0.1a0-py3-none-any.whl

Download URL ewoksid27-0.0.1a0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5b2140835ba34c294c7e6b27c7a889eb2b1e4bafa53e409b957f03ee2690ecb
BLAKE2b-256 checksum
How to use checksums
b15ef5bf2020e3b41dfc4f206c2ac012e678c450acea34eb4562cc7735e0de5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for ewoksid27 0.0.1a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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