Skip to main content

eerfile

License PyPI Python Version CI codecov

Read electron event representation (EER) files as NumPy arrays in Python.

Installation

eerfile is available on PyPI and can be installed with pip

pip install eerfile

Usage

import eerfile

# render multi-frame micrograph from file and target dose per frame
# dose per frame is in electrons per square angstrom
image = eerfile.render("FoilHole_19622436.eer", dose_per_output_frame=1.0, total_fluence=50.0)

# or you can read the entire stack of EER frames
eer_frames = eerfile.read("FoilHole_19622436.eer")

Memory-Efficient Rendering

For large movies that may cause memory issues, you can specify a chunk size of the output frames to process frames in smaller batches:

import eerfile

# Memory-efficient rendering with chunking
# Processes frames in chunks to avoid memory overflow
image = eerfile.render(
    "large_movie.eer", 
    dose_per_output_frame=1.0,
    total_fluence=50.0,
    chunk_size=10      # Process 10 output frames at a time
)

Acknowledgements

This package is a very thin convenience layer on top of tifffile which provides the EER frame decoding logic.

Metadata

Release files for eerfile 0.0.4

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

Source distribution (sdist)

Source distribution for eerfile 0.0.4
File Size Uploaded
eerfile-0.0.4.tar.gz 12.9 kB Details

Built distribution (wheel)

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

Total release size: 20.4 kB

Release files / eerfile-0.0.4.tar.gz

Download URL eerfile-0.0.4.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2557ce63f08deabd497fa162e36c7ef67cd4286b84186ab97dd69f180e99d56
BLAKE2b-256 checksum
How to use checksums
6dfe698cc2cb409b5da993fd446a429cf131b53f2817344061b8c1ebcc2c9aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2025.

Transparency log

Release files / eerfile-0.0.4-py3-none-any.whl

Download URL eerfile-0.0.4-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1558fff84310c410fb6722ad393e610dce574ee814d3313cb2ac0d19be5dd2fd
BLAKE2b-256 checksum
How to use checksums
595a40682383c8f79faac90135f6586f95b49b53ad2f58aeeb3650bcd94f1ddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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