#!/cvmfs/northgrid.gridpp.ac.uk/simonsobservatory/conda/so-conda-20231121/bin/python import sys from spt3g import core if len(sys.argv) < 2: print('Usage: %s file.g3 [file2.g3]' % sys.argv[0]) print('Validates the internal checksums on one or more .g3 files') sys.exit(1) for f in sys.argv[1:]: p = core.G3Pipeline() p.Add(core.G3Reader, filename=f) p.Run() print('File %s OK' % f)