UCL-CCS / EasyVVUQ

Python 3 framework to facilitate verification, validation and uncertainty quantification (VVUQ) for a wide variety of simulations.
https://easyvvuq.readthedocs.io/
GNU Lesser General Public License v3.0
87 stars 27 forks source link

added HDF5 decoder #384

Closed wedeling closed 1 year ago

wedeling commented 1 year ago

Added an HDF5 decoder, which is more flexible than the CSV decoder. Allows to load multiple QoIs of different size from the same HDF5 file. Syntax is the same as for the CSV decoder:

decoder = uq.decoders.HDF5(
    target_filename='output.hdf5',
    output_columns=['array_of_size10', 'array_of_size1000'])

New files:

This uses the h5py library, which I added to requirements.txt

djgroen commented 1 year ago

This adds an important functionality, with minimal risk to the rest of the code base. I don't see any obvious clashes with existing elements, and the code looks sound to me.