UnifiedResponse

class sunpy.net.fido_factory.UnifiedResponse(lst)[source] [edit on github]

Bases: collections.abc.Sequence

The object used to store results from search.

The Fido object returns results from multiple different clients. So it is always possible to sub-select these results, you can index this object with two indices. The first index is the client index, i.e. corresponding to the results from the VSOClient. The second index can be used to select records from the results returned from that client, for instance if you only want every second result you could index the second dimension with ::2.

Parameters

lst (object) – A single instance or an iterable of (QueryResponse, client) pairs or QueryResponse objects with a .client attribute.

Attributes Summary

file_num

responses

A generator of all the sunpy.net.dataretriever.QueryResponse objects contained in the UnifiedResponse object.

Methods Summary

get_response(i)

Get the actual response rather than another UnifiedResponse object.

response_block_properties()

Returns a set of class attributes on all the response blocks.

Attributes Documentation

file_num
responses

A generator of all the sunpy.net.dataretriever.QueryResponse objects contained in the UnifiedResponse object.

Methods Documentation

get_response(i)[source] [edit on github]

Get the actual response rather than another UnifiedResponse object.

response_block_properties()[source] [edit on github]

Returns a set of class attributes on all the response blocks.

Returns

s (list) – List of strings, containing attribute names in the response blocks.