In the script, bool(args.vsd_normalized_by_diameter) can be replaced by eval(str(args.vsd_normalized_by_diameter)), since bool('True') and bool('False') are both True. The 'str()' operation here handles the case where args.vsd_normalized_by_diameter==True and eval(True) will break off the program. The same to bool(args.skip_missing).
In the script,
bool(args.vsd_normalized_by_diameter)can be replaced byeval(str(args.vsd_normalized_by_diameter)), sincebool('True')andbool('False')are both True. The 'str()' operation here handles the case whereargs.vsd_normalized_by_diameter==Trueandeval(True)will break off the program. The same tobool(args.skip_missing).