Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Apr 29, 2024
1 parent 35a2858 commit b4049df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ sphinx:

python:
install:
- requirements: docs/requirements.txt
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- all
4 changes: 4 additions & 0 deletions src/anemoi/utils/grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ def shortname_to_paramid(shortname: str) -> int:
int
Parameter id.
>>> shortname_to_paramid("2t")
167
"""
return _search(shortname)["id"]

Expand All @@ -63,7 +65,9 @@ def paramid_to_shortname(paramid: int) -> str:
str
Parameter shortname.
>>> paramid_to_shortname(167)
'2t'
"""
return _search(str(paramid))["shortname"]

0 comments on commit b4049df

Please sign in to comment.