+# Process input
+## Start up logger
+setup_logging(args.verbosity);
+logging.debug('DEBUG:Debug logging output enabled.');
+logging.debug('DEBUG:args.verbosity:' + str(args.verbosity));
+logging.debug('DEBUG:args:' + str(args));
+
+## Receive input arguments
+try:
+ ### Get desired mean
+ desMean = args.mean[0];
+ logging.debug('DEBUG:Desired mean:' + str(desMean));
+
+ ### Get lambda precision factor
+ lambdaFactor = args.precision[0];
+ logging.debug('DEBUG:Lambda precision factor:' + str(lambdaFactor));
+
+ ### Get upper bound
+ if isinstance(args.upper[0], float):
+ logging.debug('DEBUG:args.upper[0] is float:' + str(args.upper[0]));
+ upperBound = args.upper[0];
+ elif args.upper[0] is None:
+ logging.debug('DEBUG:args.upper[0] is None:' + str(args.upper[0]));
+ upperBound = None;
+ else:
+ raise TypeError('Upper bound not set correctly.');
+ logging.debug('DEBUG:Upper bound:' + str(upperBound));
+
+ ### Reject negative floats.
+ if desMean < 0:
+ logging.error('ERROR:Desired mean is negative:' + str(desMean));
+ raise ValueError('Negative number error.');
+ if lambdaFactor < 0:
+ logging.error('ERROR:Lambda precision factor is negative:' + str(lambdaFactor));
+ raise ValueError('Negative number error.');
+except ValueError:
+ sys.exit(1);