eerfile
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eerfile-0.0.4.tar.gz | 12.9 kB | With provenance | Details for eerfile-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eerfile-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for eerfile-0.0.4-py3-none-any.whl |
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 logRelease 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 logSecurity for eerfile 0.0.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eerfile-0.0.4.tar.gz
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 logA 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.