get_generic_hdf5_model¶
- rbinvariantslib.models.get_generic_hdf5_model(path)¶
Load a
MagneticFieldModelfrom 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:
- model
MagneticFieldModel Grid and Magnetic field values on that grid.
- model