def metadata_plus_exceptions(
        self, output_format=None, feature_name_callback=None, **kwargs
    ):
        """
        Gets SensorML objects for all procedures in your filtered features.

        Return two dictionaries for service responses keyed by 'feature':
            responses: values are SOS DescribeSensor response text
            response_failures: values are exception text content furnished from ServiceException, ExceptionReport

        You should override the default output_format for servers that do not
        respond properly.
        """
        callback = feature_name_callback or str
        if output_format is None:
            output_format = (
                'text/xml; subtype="sensorML/1.0.1/profiles/ioos_sos/1.0"'
            )

        responses = {}
        response_failures = {}
        if self.features is not None:
            for feature in self.features:
                ds_kwargs = kwargs.copy()
                ds_kwargs.update(
                    {
                        "outputFormat": output_format,
                        "procedure": callback(feature),
                    }
                )
                try:
                    responses[feature] = SensorML(
                        self.server.describe_sensor(**ds_kwargs)
                    )
                except (ServiceException, ExceptionReport) as e:
                    response_failures[feature] = str(e)

        return (responses, response_failures)
def metadata_plus_exceptions ( self , output_format = None , feature_name_callback = None , ** kwargs ) : callback = feature_name_callback or str if output_format is None : output_format = ( 'text/xml; subtype="sensorML/1.0.1/profiles/ioos_sos/1.0"' ) responses = { } response_failures = { } if self . features is not None : for feature in self . features : ds_kwargs = kwargs . copy ( ) ds_kwargs . update ( { "outputFormat" : output_format , "procedure" : callback ( feature ) , } ) try : responses [ feature ] = SensorML ( self . server . describe_sensor ( ** ds_kwargs ) ) except ( ServiceException , ExceptionReport ) as e : response_failures [ feature ] = str ( e ) return ( responses , response_failures )
Gets SensorML objects for all procedures in your filtered features.

        Return two dictionaries for service responses keyed by 'feature':
            responses: values are SOS DescribeSensor response text
            response_failures: values are exception text content furnished from ServiceException, ExceptionReport

        You should override the default output_format for servers that do not
        respond properly.