A reader for transferring Raman data from vendor formats to NeXus and NOMAD.
Project description
A reader for raman data
Installation
It is recommended to use python 3.12 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[raman]
for the latest development version.
Purpose
This reader plugin for pynxtools is used to translate diverse file formats from the scientific community and technology partners
within the field of raman into a standardized representation using the
NeXus application definition NXraman.
Step-by-Step Example
Download the repository via git clone:
git clone https://github.com/FAIRmat-NFDI/pynxtools-raman.git
Switch to the project root folder:
cd pynxtools-raman
You see three Folders:
- examples: contains example datasets to show how the data conversion is done (currently one example from WITec and one example from the Raman Open Database)
- tests: contains a test procedure and files, which are required for software development
- src/pynxtools_raman: source files, which contain the sub-reader function for Raman experiments. This only works in combination with the Python package pynxtools. This is a specialization of the Multiformat Reader. There are as well sub-reader functions for a WITec device and files from the Raman Open Database. In addition, config.json files are located in src/pynxtools_raman/config. These are necessary to map the input data via the Multiformat Reader to the NeXus concepts. These config files allow individual adjustments, as different laboratories may have different electronic lab notebook structures.
Consider setting up an individual python environment, to separate the python functionalities of this package from the python functionalities of your operating system: For Ubuntu-based systems:
python -m venv .pyenv
source .pyenv/bin/activate
Verify its location via:
which python
It should point to the python folder, you created above with the name .pyenv.
Install the python package:
pip install .
Perform a data conversion for the WITec dataset via:
dataconverter examples/witec/txt/eln_data.yaml examples/witec/txt/Si-wafer-Raman-Spectrum-1.txt src/pynxtools_raman/config/config_file_witec.json --reader raman --nxdl NXraman --output new_witec_example_nexus.nxs
and for the Raman Open Database dataset set via:
dataconverter examples/database/rod/rod_file_1000679.rod src/pynxtools_raman/config/config_file_rod.json --reader raman --nxdl NXraman --output new_rod_example_nexus.nxs
For Example for the Raman Open Database command:
- You assign the reader name via
--reader raman. - You assign the NeXus application definition, on which the output will be based via
--nxdl NXraman. - You specify the name and path of the output file via
--output new_rod_example_nexus.nxs. - You assign an individualized config file via
src/pynxtools_raman/config/config_file_rod.json. The config file is detected by its extension.json. - You give the file which includes the meta and measurement data via
examples/database/rod/rod_file_1000679.rod. The parser is specified to detect the.rodfile, and handle the content appropriately.
Then you can inspect the generated file at this website or in VScode via the extension "H5web".
Docs
Extensive documentation of this pynxtools plugin is available here. You can find information about getting started, how-to guides, the supported file formats, how to get involved, and much more there.
Contact person in FAIRmat for this reader
Ron Hildebrandt
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynxtools_raman-0.1.1.tar.gz.
File metadata
- Download URL: pynxtools_raman-0.1.1.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59aff7b472b578aa95b31c7f80528abb7fe81c52aa24d981769ec84ab5ece999
|
|
| MD5 |
913e3a1b62e213f44d6d21c1fdf2461e
|
|
| BLAKE2b-256 |
27d53aab0e4b7e67e8a0858d8b7b7758bf1b82387a79c7a85fa6c08610170042
|
Provenance
The following attestation bundles were made for pynxtools_raman-0.1.1.tar.gz:
Publisher:
publish.yml on FAIRmat-NFDI/pynxtools-raman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pynxtools_raman-0.1.1.tar.gz -
Subject digest:
59aff7b472b578aa95b31c7f80528abb7fe81c52aa24d981769ec84ab5ece999 - Sigstore transparency entry: 619613747
- Sigstore integration time:
-
Permalink:
FAIRmat-NFDI/pynxtools-raman@61c444a001719c3d81d8456a000cd2299ec8d3c1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/FAIRmat-NFDI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61c444a001719c3d81d8456a000cd2299ec8d3c1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pynxtools_raman-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pynxtools_raman-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fe3124b631dee8cef7a01e8e48e44a30a9f5d933bfb618a7a4c51e9fd487c77
|
|
| MD5 |
df013cc5f2e12521518317f53fd18afb
|
|
| BLAKE2b-256 |
63906d3cbe092dbadf241c7f32485f93c066bd6248c47b42f67a8814ceb1da74
|
Provenance
The following attestation bundles were made for pynxtools_raman-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on FAIRmat-NFDI/pynxtools-raman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pynxtools_raman-0.1.1-py3-none-any.whl -
Subject digest:
6fe3124b631dee8cef7a01e8e48e44a30a9f5d933bfb618a7a4c51e9fd487c77 - Sigstore transparency entry: 619613796
- Sigstore integration time:
-
Permalink:
FAIRmat-NFDI/pynxtools-raman@61c444a001719c3d81d8456a000cd2299ec8d3c1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/FAIRmat-NFDI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61c444a001719c3d81d8456a000cd2299ec8d3c1 -
Trigger Event:
release
-
Statement type: