get_generic_hdf5_model

rbinvariantslib.models.get_generic_hdf5_model(path)

Load a MagneticFieldModel from a generic HDF5 file.

This is meant to plug in your own data.

The file should have (m, n, p) arrays named “x”, “y”, “z”, “Bx”, “By”, “Bz”, and a scalar key named “inner_boundary”.

Parameters:
pathstr

Path to file on disk

Returns:
modelMagneticFieldModel

Grid and Magnetic field values on that grid.