Critical current measurements of superconducting cables by the transformer method