parser.add_argument('-d','--directory',help="if given, this path will be prepended to every entry returned.")
parser.add_argument('-e','--extension',help="if given, this extension will be appended to every entry returned.")
parser.add_argument('-p','--protocol',help="if given, limits the check to a particular subset of the data that corresponds to the given protocol.",choices=db.protocol_names()ifdb.is_valid()else())
parser.add_argument('-p','--protocol',help="if given, limits the check to a particular subset of the data that corresponds to the given protocol.",choices=list(db.protocol_names()).extend(['male','female'])ifdb.is_valid()else())
parser.add_argument('-u','--purpose',help="if given, this value will limit the output files to those designed for the given purposes.",choices=db.purposes()ifdb.is_valid()else())
parser.add_argument('-C','--client',type=int,help="if given, limits the dump to a particular client.",choices=db.model_ids()ifdb.is_valid()else())
parser.add_argument('-g','--group',help="if given, this value will limit the output files to those belonging to a particular protocolar group.",choices=db.groups()ifdb.is_valid()else())
parser.add_argument('-o','--output-dir',metavar='DIR',type=str,dest='output_dir',default='./protocols/',help='Output directory (defaults to "%(default)s")')
parser.add_argument('-p','--protocol-name',type=str,dest='protocol_name',default='mobile0-male',help=' Protocol name (defaults to "%(default)s")')
parser.add_argument('-g','--gender-dependent',action='store_true',dest='gender_dependent',default=False,help='Use gender dependent Training data (defaults to "%(default)s")')
parser.add_argument('-v','--verbose',dest='verbose',action='store_true',default=False,help="Increase some verbosity")
args=parser.parse_args()
########################
# Loading Hiperparameters
#########################
m_output_dir=args.output_dir
m_protocol_name=args.protocol_name
m_gender_dependent=args.gender_dependent
# verify that the protocol name exists
db=Database()
ifm_protocol_namenotindb.protocol_names():
raiseValueError("The given protocol name '%s' does not exist."%m_protocol_name)