Skip to main content

A package to unify the storage of Brillouin Light Scattering related data in HDF5 files

Project description

The HDF5_BLS package

This package is a part of the HDF5_BLS project. It's purpose is to unify the storage of BLS-related data to a HDF5 file.

Installation

To install the package, you can use pip:

pip install HDF5_BLS

To install the package from source for local development, please refer to the documentation.

Documentation

You can access the documentation of the project at this link or on the dedicated ReadTheDocs page at this link.

Example of usage

from HDF5_BLS import Wrapper

# Create a HDF5 file
wrp = Wrapper(filepath = "path/to/file.h5")

###############################################################################
# Existing code to extract data from a file
###############################################################################
# Storing the data in the HDF5 file (for this example we use a random array)
data = np.random.random((50, 50, 512))
wrp.add_raw_data(data = data, parent_group = "Brillouin", name = "Raw data")

###############################################################################
# Existing code to convert the data to a PSD
###############################################################################
# Storing the Power Spectral Density in the HDF5 file together with the associated frequency array (for this example we use random arrays)
PSD = np.random.random((50, 50, 512))
frequency = np.arange(512)
wrp.add_PSD(data = PSD, parent_group = "Brillouin", name = "Power Spectral Density")
wrp.add_frequency(data = frequency, parent_group = "Brillouin", name = "Frequency")

###############################################################################
# Existing code to fit the PSD to extract shift and linewidth arrays
###############################################################################
# Storing the Power Spectral Density in the HDF5 file together with the associated frequency array (for this example we use random arrays)
shift = np.random.random((50, 50))
linewidth = np.random.random((50, 50))
wrp.add_treated_data(parent_group = "Brillouin", name_group = "Treat_0", shift = shift, linewidth = linewidth)

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

hdf5_bls-1.1.0.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hdf5_bls-1.1.0-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file hdf5_bls-1.1.0.tar.gz.

File metadata

  • Download URL: hdf5_bls-1.1.0.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for hdf5_bls-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4a8f2b86401ddedaa000c2bf480c9fbf35c9517b0b7179d252cde7004da318fc
MD5 a7bebb80854416b81a231078b10ac8b8
BLAKE2b-256 e229ac57fe3f2a2b76c9151a92bdd0ec5f0c5266c831a31106eb51d614d50df6

See more details on using hashes here.

File details

Details for the file hdf5_bls-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hdf5_bls-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for hdf5_bls-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 981a72e21ec708e591e37ebc8eaff3b5ef9de5b1c82e1ca4e7423839f02b4e5e
MD5 e1fe695f844cd243ee80191ff729fe87
BLAKE2b-256 8bc5b13c798e2c07f646be110290df51bfd3a99fb2a86b6f14bbf7c0e6e17640

See more details on using hashes here.

Supported by

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