Standardised Data Access Tool of IPASC
Project description
DataConversionTool
Dear photoacoustic community,
in this github repository we are currently starting to develop a tool that enables the conversion of vendor-specific proprietary data formats into a standard format that has a defined structure for the meta data that are given with the binary data. A list of meta data information was suggested by the International Photoacoustic Standardisation Consortium (IPASC) in early 2020. You can find this list using the following link:
https://www.ipasc.science/documents/20200121_Metadata_list.pdf
Please help IPASC by reporting any missing parameters.
Many thanks,
The IPASC members
Use case: using the tool to read and write HDF5 files
from IPASC_DataConversionTool import iohandler as io
# Loading data from the hard drive
pa_data = io.load_data("path/to/hdf5file.hdf5")
numpy_array = pa_data.binary_time_series_data
# Writing of data to hard drive
io.write_data("path/to/new/file.hdf5", pa_data)
Use case: Implement a conversion adapter
from IPASC_DataConversionTool.api import BaseAdapter
class DeviceSpecificAdapter(BaseAdapter):
def generate_binary_data(self) -> np.ndarray:
# IMPLEMENTATION HERE
pass
def generate_meta_data_device(self) -> dict:
# IMPLEMENTATION HERE
pass
def set_metadata_value(self, metadata_tag: MetaDatum) -> object:
# IMPLEMENTATION HERE
pass
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 Distributions
Built Distribution
Hashes for ipasc_tool-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fab910abc56e83715fc1f4fe05f6e2b6d91d041c802f3c8b36d37cd40cc520 |
|
MD5 | 66d7ff06e0a1182f6bfcc8c42ee92a68 |
|
BLAKE2b-256 | a40bd0404efbf85f53fb5d6bfad8e2412cb2a270d3331de223bd4c48fe9045b2 |