modelprop.py
def create_with_arg_parser(cls):
        '''
        Creates an arg parser and uses that to create the Main class
        '''
        arg_parser = argparse.ArgumentParser(
            description='''Program to query a fragility/vulnerability
            model from a database/file'''
        )
        arg_parser.add_argument(
            'schema',
            help='Exposure/Vulnerability Schema',
            type=str,
            default="SARA_v1.0")
        arg_parser.add_argument(
            'assetcategory',
            help='Type of exposed assets',
            type=str,
            default='buildings')
        arg_parser.add_argument(
            'losscategory',
            help='damage or loss computation',
            type=str,
            default='structural')
        arg_parser.add_argument( 
            '-taxonomies',
            #narg='?',
            help='selected taxonomies',
            type=str)

        args = arg_parser.parse_args()
        return cls(args)

        Creates an arg parser and uses that to create the Main class
        
Creates an arg parser and uses that to create the Main class
Creates an arg parser and uses that to create the Main class
def create_with_arg_parser(cls):
        arg_parser = argparse.ArgumentParser(
            description='''Program to query a fragility/vulnerability
            model from a database/file'''
        )
        arg_parser.add_argument(
            'schema',
            help='Exposure/Vulnerability Schema',
            type=str,
            default="SARA_v1.0")
        arg_parser.add_argument(
            'assetcategory',
            help='Type of exposed assets',
            type=str,
            default='buildings')
        arg_parser.add_argument(
            'losscategory',
            help='damage or loss computation',
            type=str,
            default='structural')
        arg_parser.add_argument( 
            '-taxonomies',
            help='selected taxonomies',
            type=str)
        args = arg_parser.parse_args()
        return cls(args)
def create_with_arg_parser ( cls ) : arg_parser = argparse . ArgumentParser ( description = '''Program to query a fragility/vulnerability
            model from a database/file''' ) arg_parser . add_argument ( 'schema' , help = 'Exposure/Vulnerability Schema' , type = str , default = "SARA_v1.0" ) arg_parser . add_argument ( 'assetcategory' , help = 'Type of exposed assets' , type = str , default = 'buildings' ) arg_parser . add_argument ( 'losscategory' , help = 'damage or loss computation' , type = str , default = 'structural' ) arg_parser . add_argument ( '-taxonomies' , help = 'selected taxonomies' , type = str ) args = arg_parser . parse_args ( ) return cls ( args )
Creates an arg parser and uses that to create the Main class
Creates an arg parser and uses that to create the Main class
'''
        Creates an arg parser and uses that to create the Main class
        ''' #narg='?',
cls