Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc
Browse files Browse the repository at this point in the history
cfkanesan committed Mar 28, 2024
1 parent ac68370 commit 736f69d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/idpi/data_source.py
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ def __post_init__(self):

@singledispatchmethod
def retrieve(
self, request: dict[str, typing.Any] | str | tuple[str, str]
self, request: dict[str, typing.Any] | str | tuple[str, str] | mars.Request
) -> Iterator:
"""Stream GRIB fields from files or FDB.
@@ -67,11 +67,12 @@ def retrieve(
Simple strings are interpreted as `param` filters and pairs of strings
are interpreted as `param` and `levtype` filters.
Key value pairs from the `request_template` attribute are used as default
values.
values. Note that the default values in the mars request passed as an input
will take precedence on the template values.
Parameters
----------
request : dict | str | tuple[str, str]
request : dict | str | tuple[str, str] | idpi.mars.Request
Request for data from the source in the mars language.
Yields

0 comments on commit 736f69d

Please sign in to comment.