featuremapper/__init__.py
def _update(self, p, current_values):
        """
        Update each DistributionMatrix with (activity,bin) and
        populate the full matrix, if enabled.
        """
        timestamp = self.metadata['timestamp']
        for mvals in self.measurement_product:
            name = mvals[0]
            bounds = self.metadata.outputs[name]['bounds']
            f_vals = mvals[1:]
            act = self._activities[name][f_vals]
            for feature, value in current_values:
                self._featureresponses[name][f_vals][feature.lower()].update(act, value)
            if p.store_responses:
                _, cv = zip(*current_values)
                key = (timestamp,)+f_vals+cv
                self._responses[name][key] = Image(act.copy(), bounds=bounds, label='Response')

        Update each DistributionMatrix with (activity,bin) and
        populate the full matrix, if enabled.
        
Update each DistributionMatrix with (activity,bin) and
populate the full matrix, if enabled.
Update each DistributionMatrix with ( activity bin ) and populate the full matrix if enabled .
def _update(self, p, current_values):
        timestamp = self.metadata['timestamp']
        for mvals in self.measurement_product:
            name = mvals[0]
            bounds = self.metadata.outputs[name]['bounds']
            f_vals = mvals[1:]
            act = self._activities[name][f_vals]
            for feature, value in current_values:
                self._featureresponses[name][f_vals][feature.lower()].update(act, value)
            if p.store_responses:
                _, cv = zip(*current_values)
                key = (timestamp,)+f_vals+cv
                self._responses[name][key] = Image(act.copy(), bounds=bounds, label='Response')
def _update ( self , p , current_values ) : timestamp = self . metadata [ 'timestamp' ] for mvals in self . measurement_product : name = mvals [ 0 ] bounds = self . metadata . outputs [ name ] [ 'bounds' ] f_vals = mvals [ 1 : ] act = self . _activities [ name ] [ f_vals ] for feature , value in current_values : self . _featureresponses [ name ] [ f_vals ] [ feature . lower ( ) ] . update ( act , value ) if p . store_responses : _ , cv = zip ( * current_values ) key = ( timestamp , ) + f_vals + cv self . _responses [ name ] [ key ] = Image ( act . copy ( ) , bounds = bounds , label = 'Response' )
Update each DistributionMatrix with (activity,bin) and
populate the full matrix, if enabled.
Update each DistributionMatrix with ( activity bin ) and populate the full matrix if enabled .
"""
        Update each DistributionMatrix with (activity,bin) and
        populate the full matrix, if enabled.
        """
self
p
current_values