osc_generator/parameter_declarations.py
def delete_existing_parameter(self, param_name):
        """
        Delete existing parameter from attributes table

        Args:
            param_name (string): Parameter name to be deleted
        """
        query = f'"Parameter Name" = \'{param_name}\''
        feature_request = QgsFeatureRequest().setFilterExpression(query)
        features_to_delete = self._param_layer.getFeatures(feature_request)

        feat_ids = []
        for feature in features_to_delete:
            feat_ids.append(feature.id())

        self._param_layer_data_input.deleteFeatures(feat_ids)

        Delete existing parameter from attributes table

        Args:
            param_name (string): Parameter name to be deleted
        
Delete existing parameter from attributes table
Delete existing parameter from attributes table
def delete_existing_parameter(self, param_name):
        query = f'"Parameter Name" = \'{param_name}\''
        feature_request = QgsFeatureRequest().setFilterExpression(query)
        features_to_delete = self._param_layer.getFeatures(feature_request)
        feat_ids = []
        for feature in features_to_delete:
            feat_ids.append(feature.id())
        self._param_layer_data_input.deleteFeatures(feat_ids)
def delete_existing_parameter ( self , param_name ) : query = f'"Parameter Name" = \'{param_name}\'' feature_request = QgsFeatureRequest ( ) . setFilterExpression ( query ) features_to_delete = self . _param_layer . getFeatures ( feature_request ) feat_ids = [ ] for feature in features_to_delete : feat_ids . append ( feature . id ( ) ) self . _param_layer_data_input . deleteFeatures ( feat_ids )
Delete existing parameter from attributes table
Delete existing parameter from attributes table
"""
        Delete existing parameter from attributes table

        Args:
            param_name (string): Parameter name to be deleted
        """
self
param_name
Parameter name to be deleted
Parameter name to be deleted