An investigation of the periodicity condition in the gauge invariant periodic quantization method