Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ipasc_tool-0.1.3-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file ipasc_tool-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ipasc_tool-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for ipasc_tool-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 83b8849894af582f53d9cda835a507f40b478f99354a0bae8706fb882034da22
MD5 7c1c043aa0c21fd7e4ea8b4d39d9ea36
BLAKE2b-256 0894afedaec4177b8ae44eea9bd617b33d5782cd5ca788e91825c8f6d59091fd

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