modelprop.py
def run(self):
        '''
        Method to:
        - load the fragility model from a file (json)
        - query the model based on a list of taxonomies
        - write the output(s)
        '''
        if (self._check_schema()):
            foldername = os.path.join(self.folder,"schemas/{}".format(self.schema))
            self.path_infile = foldername
            self.in_file = "{}_struct.json".format(self.schema)
        else:
            raise Exception ("schema {} not supported".format(self.schema))

        #read model from file 
        in_file = os.path.join(self.path_infile,self.in_file)
        self._read_schema(in_file)

        #query
        self._queryModel()

        #write outputs
        self._write_outputs()
        return (0)

        Method to:
        - load the fragility model from a file (json)
        - query the model based on a list of taxonomies
        - write the output(s)
        
Method to:
load the fragility model from a file (json)
query the model based on a list of taxonomies
write the output(s)
Method to : load the fragility model from a file ( json ) query the model based on a list of taxonomies write the output ( s )
def run(self):
        if (self._check_schema()):
            foldername = os.path.join(self.folder,"schemas/{}".format(self.schema))
            self.path_infile = foldername
            self.in_file = "{}_struct.json".format(self.schema)
        else:
            raise Exception ("schema {} not supported".format(self.schema))
        in_file = os.path.join(self.path_infile,self.in_file)
        self._read_schema(in_file)
        self._queryModel()
        self._write_outputs()
        return (0)
def run ( self ) : if ( self . _check_schema ( ) ) : foldername = os . path . join ( self . folder , "schemas/{}" . format ( self . schema ) ) self . path_infile = foldername self . in_file = "{}_struct.json" . format ( self . schema ) else : raise Exception ( "schema {} not supported" . format ( self . schema ) ) in_file = os . path . join ( self . path_infile , self . in_file ) self . _read_schema ( in_file ) self . _queryModel ( ) self . _write_outputs ( ) return ( 0 )
Method to:
 load the fragility model from a file (json)
 query the model based on a list of taxonomies
 write the output(s)
Method to : load the fragility model from a file ( json ) query the model based on a list of taxonomies write the output ( s )
'''
        Method to:
        - load the fragility model from a file (json)
        - query the model based on a list of taxonomies
        - write the output(s)
        ''' #read model from file  #query #write outputs
self