modelprop.py
def _read_schema(self, input_file):
        '''
        read fragility/vulnerability model from a json file.
        the file contains two dictionaries: 
        1) 'meta' includes information (metadata) on the schema, the list of taxonomies and
           damage states
        2) 'data' provides the mean and log. std deviation of the lognormal
           distribution encoding the fragility / vulnerability descriptions
        the function returns a dictionary with metadata and a pandas dataframe
        '''
        with open(input_file,'r') as f:
            parsed = json.load(f)
        
        self.metadata = parsed['meta']
        self.data = pd.DataFrame(parsed['data'])
        return(0)

        read fragility/vulnerability model from a json file.
        the file contains two dictionaries: 
        1) 'meta' includes information (metadata) on the schema, the list of taxonomies and
           damage states
        2) 'data' provides the mean and log. std deviation of the lognormal
           distribution encoding the fragility / vulnerability descriptions
        the function returns a dictionary with metadata and a pandas dataframe
        
read fragility/vulnerability model from a json file.
the file contains two dictionaries:
1) 'meta' includes information (metadata) on the schema, the list of taxonomies and
damage states
2) 'data' provides the mean and log. std deviation of the lognormal
distribution encoding the fragility / vulnerability descriptions
the function returns a dictionary with metadata and a pandas dataframe
read fragility / vulnerability model from a json file . the file contains two dictionaries : 1 ) ' meta ' includes information ( metadata ) on the schema the list of taxonomies and damage states 2 ) ' data ' provides the mean and log . std deviation of the lognormal distribution encoding the fragility / vulnerability descriptions the function returns a dictionary with metadata and a pandas dataframe
def _read_schema(self, input_file):
        with open(input_file,'r') as f:
            parsed = json.load(f)
        self.metadata = parsed['meta']
        self.data = pd.DataFrame(parsed['data'])
        return(0)
def _read_schema ( self , input_file ) : with open ( input_file , 'r' ) as f : parsed = json . load ( f ) self . metadata = parsed [ 'meta' ] self . data = pd . DataFrame ( parsed [ 'data' ] ) return ( 0 )
read fragility/vulnerability model from a json file.
read fragility / vulnerability model from a json file .
'''
        read fragility/vulnerability model from a json file.
        the file contains two dictionaries: 
        1) 'meta' includes information (metadata) on the schema, the list of taxonomies and
           damage states
        2) 'data' provides the mean and log. std deviation of the lognormal
           distribution encoding the fragility / vulnerability descriptions
        the function returns a dictionary with metadata and a pandas dataframe
        '''
self
input_file