Skip to main content

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)

Metadata

Release files for HDF5-BLS 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for HDF5-BLS 1.1.0
File Size Uploaded
hdf5_bls-1.1.0.tar.gz 44.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for HDF5-BLS 1.1.0
File Interpreter ABI Platform
hdf5_bls-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 94.2 kB

Release files / hdf5_bls-1.1.0.tar.gz

Download URL hdf5_bls-1.1.0.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4a8f2b86401ddedaa000c2bf480c9fbf35c9517b0b7179d252cde7004da318fc
BLAKE2b-256 checksum
How to use checksums
e229ac57fe3f2a2b76c9151a92bdd0ec5f0c5266c831a31106eb51d614d50df6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hdf5_bls-1.1.0-py3-none-any.whl

Download URL hdf5_bls-1.1.0-py3-none-any.whl
Size 49.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
981a72e21ec708e591e37ebc8eaff3b5ef9de5b1c82e1ca4e7423839f02b4e5e
BLAKE2b-256 checksum
How to use checksums
8bc5b13c798e2c07f646be110290df51bfd3a99fb2a86b6f14bbf7c0e6e17640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page