Skip to main content

Make electron microscopy results interoperable via NeXus

Project description

Ruff

Parse and normalize electron microscopy data

Installation

It is recommended to use python 3.11 with a dedicated virtual environment for this package. Learn how to manage python versions and virtual environments.

This package is a reader plugin for pynxtools and thus should be installed together with pynxtools:

pip install pynxtools[em]

for the latest release version from pypi.

If you are interested in the newest version, we recommend to work with a development installation instead.

Purpose

This reader plugin for pynxtools is used to translate diverse file formats from the scientific community and technology partners within the field of electron microscopy into a standardized representation using the NeXus application definition NXem.

Supported file formats

This plugin supports several file formats that are currently used within the research field of electron microscopy. A detailed summary is available in the reference section of the documentation.

Getting started

A getting started tutorial is offered that guides you on how to use the em reader for converting your data to NeXus from a Jupyter notebook or command line calls. Note that not every combination of input from a supported file format and other input, such as from an electronic lab notebook, allows filling all required and recommended fields including their attributes of the NXem application definition. Therefore, you may need to provide an ELN file that contains the missing values in order for the validation step of the EM reader to pass.

Contributing

We are continously working on improving the collection of parsers and their functionalities. If you would like to implement a parser for your data, feel free to get in contact.

Development install

Install the package with its dependencies:

git clone https://github.com/FAIRmat-NFDI/pynxtools-em.git --branch main --recursive pynxtools_em
cd pynxtools_em
python -m pip install --upgrade pip
python -m pip install -e ".[dev,docs]"
pre-commit install

The last line installs a pre-commit hook which automatically formats (linting) and type checks the code before committing.

Test this software

Especially relevant for developers, there exists a basic test framework written in pytest which can be used as follows:

python -m pytest -sv tests

Contact person in FAIRmat for this reader

Markus Kühbach

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

pynxtools_em-0.3.1.tar.gz (125.3 kB view details)

Uploaded Source

Built Distribution

pynxtools_em-0.3.1-py3-none-any.whl (203.3 kB view details)

Uploaded Python 3

File details

Details for the file pynxtools_em-0.3.1.tar.gz.

File metadata

  • Download URL: pynxtools_em-0.3.1.tar.gz
  • Upload date:
  • Size: 125.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pynxtools_em-0.3.1.tar.gz
Algorithm Hash digest
SHA256 68ffe4e6fe3415c4ad766adfda371183437ae6f638361993d31bdab991d22af2
MD5 c8dd6eea54fa121e97b7e33dcdb58ef9
BLAKE2b-256 88209d1a71fd0b0b391355837567430ac8c240ef3e4be9518a35a0050192c33b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynxtools_em-0.3.1.tar.gz:

Publisher: publish.yml on FAIRmat-NFDI/pynxtools-em

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

File details

Details for the file pynxtools_em-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pynxtools_em-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 203.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pynxtools_em-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acbe280738b4238f500baee70e5e9de9813112f3d724277e95457aedc9ec43d2
MD5 f2682503486a845e81ba41cbbc0f8d26
BLAKE2b-256 caf77284a17d8215c7556af199cd00f987495b3462c4066f40408bb7625adddd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynxtools_em-0.3.1-py3-none-any.whl:

Publisher: publish.yml on FAIRmat-NFDI/pynxtools-em

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

Supported by

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