Skip to main content

Lightweight tool to merge crystallographic frames

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

frameMerge

PyPI version Downloads
frameMerge is a lightweight Python package for merging crystallographic detector frames within HDF5 files - supporting both parallel (multiprocessing) and sequential execution.

Installation

You can pull from pypi with pip

pip install frameMerge

Or you can clone the repo and install it locally:

git clone https://github.com/ryan-odea/frameMerge.git
cd frameMerge 
pip install .

Usage

You can use frameMerge directly from the command line as:

frameMerge --file-name input.h5 \
           --output-file merged.h5 \
           --n-frames 5000 \
           --n-merged-frames 10 \
           --skip-pattern 1 2 \
           --data-location entry/data \
           --data-name data \
           --parallel

or through the Python API

from frameMerge import Merger

m = Merger(
    file_name="input.h5",
    output_file="merged.h5",
    n_frames=5000,
    n_merged_frames=10,
    skip_pattern=[1, 2],
    data_location="entry/data",
    data_name="data"
)
m.process(parallel=True)

On the cluster

On clusters, you may find the example.sbatch in this repo useful.

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

framemerge-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framemerge-1.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file framemerge-1.1.0.tar.gz.

File metadata

  • Download URL: framemerge-1.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for framemerge-1.1.0.tar.gz
Algorithm Hash digest
SHA256 00ecdc253807ec25dad14ddbb052fd3f22815b5218e0f83d40cfdd8145bd4572
MD5 4e7841497c82ee92086724700f6f760e
BLAKE2b-256 8de78109135b8c5dc6658d55e22ce2f4d976c49a21f7e282ff34bd2056f1d68a

See more details on using hashes here.

Provenance

The following attestation bundles were made for framemerge-1.1.0.tar.gz:

Publisher: publish.yml on ryan-odea/frameMerge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file framemerge-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: framemerge-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for framemerge-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1881a6f0f56006bb3c02ae4295d82148999f063ec19dbb66738784bb31feee2
MD5 57b1b6e18e32fbacfa382e934242327e
BLAKE2b-256 5150a8cab86e5c0ea6b4bae780c21bbc5347cd0e2b056de95421eef5e00666fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for framemerge-1.1.0-py3-none-any.whl:

Publisher: publish.yml on ryan-odea/frameMerge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page