Source code for calibration.CalibrationsCommandLine
import Voxel
import argparse
import sys
[docs]def parseArgs(args = None):
parser = argparse.ArgumentParser(description = 'Select Calibrations you want to perform')
parser.add_argument('-l', '--lens', help = 'Lens Calibration', type = bool, default = False)
parser.add_argument('-c', '--common', help = 'common phase Offset', type = bool, default = False)
parser.add_argument('-n', '--nonlinear', help = 'Non Linearity Offset', type = bool, default = False)
parser.add_argument('-t', '--temperature', help = 'Temperature Offset', type = bool, default = False)
parser.add_argument('-p', '--pixel', help = 'Per Pixel Offset', type = bool, default = False)
return parser.parse_args(args)
# def commandLineCalib():
# val = parseArgs(sys.argv[1:])
#
# if val.lens == True:
#