Extend NeXus for materials science experiment and serve as a NOMAD parser implementation for NeXus.
Reason this release was yanked:
This version has a bug in the nexus version retrieval.
Project description
pynxtools
is a tool designed for making your experimental data FAIR.
It allows to develop ontologies and to create ontological instances based on the NeXus format.
Installation
It is recommended to use python 3.8 with a dedicated virtual environment for this package. Learn how to manage python versions and virtual environments.
Install this package with
pip install git+https://github.com/FAIRmat-NFDI/pynxtools.git
for the latest development version.
Scope
pynxtools
(previously called nexusutils
) is intended as a parser for combining various instrument output formats and electronic lab notebook (ELN) formats to an hdf5 file according to NeXus application definitions.
Additionally, the software is used in the research data management system NOMAD for making experimental data searchable and publishable. NOMAD is developed by the FAIRMAT consortium, as a part of the German National Research Data Infrastructure (NFDI).
The software tools are located inside pynxtools
and they are
shipped with unit tests located in tests
.
Some examples with real datasets are provided in examples
.
It guides you through the process of converting instrument raw
data into the NeXus standard and visualising the files content.
Command line tools
- nyaml2nxdl: Converts, easy to read, YAML NeXus schemas into NeXus XML definition language (NXDL).
- dataconverter: Creates compliant instances of NeXus/HDF5 files to NeXus schemas.
- read_nexus: Outputs a debug log for a given NeXus file.
Contributing
Development install
Install the package with its dependencies:
git clone https://github.com/FAIRmat-NFDI/pynxtools.git \\
--branch master \\
--recursive pynxtools
cd pynxtools
git submodule sync --recursive
git submodule update --init --recursive --jobs=4
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e ".[dev]"
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
Run examples
A number of examples exist which document how the tools can be used. For a standalone usage convenient jupyter notebooks are available for each tool. To use them jupyter and related tools have to be installed in the development environment as follows:
python -m pip install jupyter
python -m pip install jupyterlab
python -m pip install jupyterlab_h5web
Questions, suggestions?
To ask further questions, to make suggestions how we can improve these tools, to get advice on how to build on this work, or to get your parser included into NOMAD, you can:
- Open an issue on the pynxtools GitHub
- Use our forums at matsci.org
- Write to support@nomad-lab.eu
- Contact directly the lead developers of the individual parsers.
Does this software require NOMAD or NOMAD OASIS ?
No. The data files produced here can be uploaded to Nomad. Therefore, this acts like the framework to design schemas and instances of data within the NeXus universe.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pynxtools-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0012a94eae569f6c5c7987c52cf6cd69ea0721637e8f86742458e8f38d54d1ce |
|
MD5 | c3b70c09767ea0f185b1d225759b80a8 |
|
BLAKE2b-256 | 7824a5c79cbbac263d11dcca87137fa7be3fbc093d24f3da08780c6664cc0868 |