Use of in situ wire in small magnets