restrict_weights ================ .. currentmodule:: emg3d.core .. autofunction:: restrict_weights