Skip to content

Commit 22eb7c9

Browse files
committed
remove redundant docstrings
1 parent 8ab76c2 commit 22eb7c9

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

src/anemoi/inference/grib/templates/builtin.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,12 @@ class BuiltinTemplates(IndexTemplateProvider):
3333
"""Builtin templates provider."""
3434

3535
def __init__(self, manager: Any, index_path: str | None = None) -> None:
36-
"""Initialize the BuiltinTemplates instance.
37-
38-
Parameters
39-
----------
40-
manager : Any
41-
The manager instance.
42-
index_path : Optional[str], optional
43-
The path to the index file, by default None.
44-
"""
4536
if index_path is None:
4637
index_path = os.path.join(os.path.dirname(__file__), "builtin.yaml")
4738

4839
super().__init__(manager, index_path)
4940

5041
def load_template(self, grib: str, lookup: dict[str, Any]) -> ekd.Field | None:
51-
"""Load the template for the given GRIB and lookup.
52-
53-
Parameters
54-
----------
55-
grib : str
56-
The GRIB string.
57-
lookup : Dict[str, Any]
58-
The lookup dictionary.
59-
60-
Returns
61-
-------
62-
Optional[ekd.Field]
63-
The loaded template field if found, otherwise None.
64-
"""
6542
import earthkit.data as ekd
6643

6744
template = zlib.decompress(base64.b64decode(grib))

src/anemoi/inference/grib/templates/samples.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ def __init__(self, manager: Any, *args, index_path: str | None = None) -> None:
3333
return super().__init__(manager, [*args])
3434

3535
def load_template(self, grib: str, lookup: dict[str, Any]) -> ekd.Field | None:
36-
"""Load a GRIB template based on the provided lookup dictionary.
37-
38-
Parameters
39-
----------
40-
grib : str
41-
The GRIB template string.
42-
lookup : Dict[str, Any]
43-
The lookup dictionary to format the GRIB template string.
44-
45-
Returns
46-
-------
47-
Optional[ekd.Field]
48-
The loaded GRIB template field, or None if the template is not found.
49-
"""
5036
template = grib.format(**lookup)
5137
if not os.path.exists(template):
5238
LOG.warning(f"Template not found: {template}")

0 commit comments

Comments
 (0)