Magnetic materials are constructed as
magnetic_field = R3(x, y, z)
material = ba.RefractiveMaterial(name, delta, beta, magnetic_field)
# or
material = ba.MaterialBySLD(name, sld_real, sld_imag, magnetic_field)
The magnetic_field
vector has units of A/m.