UnifiedResponse#
- class sunpy.net.fido_factory.UnifiedResponse(*results)[source]#
Bases:
SequenceThe object used to store results from
search.The
Fidoobject 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 theVSOClient. 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:
*results (
sunpy.net.base_client.QueryResponseTable) – One or more QueryResponseTable objects.
Attributes Summary
Returns all the colnames in any of the tables in this response.
Returns a list of errors for each client.
The number of records returned in all responses.
Methods Summary
keys()Names of the contained responses.
Returns all the names that can be used to format filenames.
show(*cols)Displays response tables with desired columns for the Query.
show_in_notebook(*cols, **kwargs)Display the attrs tables as interactive grids in a Jupyter Notebook.
Attributes Documentation
- all_colnames#
Returns all the colnames in any of the tables in this response.
Any column names in this list are valid inputs to
UnifiedResponse.show().
- errors#
Returns a list of errors for each client.
- file_num#
The number of records returned in all responses.
Methods Documentation
- path_format_keys()[source]#
Returns all the names that can be used to format filenames.
Only the keys which can be used to format all results from all responses contained in this
UnifiedResponseare returned. Each individual response might have more keys available.Each one corresponds to a single column in the table, and the format syntax should match the dtype of that column, i.e. for a
Timeobject or aQuantity.
- show(*cols)[source]#
Displays response tables with desired columns for the Query.
- Parameters:
*cols (
tuple) – Name of columns to be shown.- Returns:
listofastropy.table.Table– A list of tables showing values for specified columns.
- show_in_notebook(*cols, **kwargs)[source]#
Display the attrs tables as interactive grids in a Jupyter Notebook.
This function utilizes the
itableslibrary to render tables as interactive grids.Note
This function requires the optional dependency
itables. Ensure it is installed before calling this method.- Parameters:
**kwargs (dict, optional) – Additional keyword arguments to customize the
itables.showfunction.