Neodymium blocks for magnetic sensors