Comparison of quantization of charge transport in periodic and open pumps