Skip to content

Commit d385382

Browse files
authored
Merge pull request #773 from DHI/missing_class_docstrings
Added missing class level one-line summary docstring.
2 parents 98d4bc6 + 4b77f23 commit d385382

15 files changed

+39
-3
lines changed

mikeio/dataset/_data_plot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ def __init__(self, da: DataArray) -> None:
847847

848848

849849
class _DatasetPlotter:
850+
"""Class for plotting scatter plots from datasets."""
851+
850852
def __init__(self, ds: Dataset) -> None:
851853
self.ds = ds
852854

mikeio/dfs/_dfs0.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def _write_dfs0(
8282

8383

8484
class Dfs0:
85+
"""Class for reading/writing dfs0 files."""
86+
8587
def __init__(self, filename: str | Path):
8688
"""Create a Dfs0 object for reading, writing.
8789

mikeio/dfs/_dfs1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def _write_dfs1_header(filename: str | Path, ds: Dataset, title: str) -> DfsFile
6666

6767

6868
class Dfs1(_Dfs123):
69+
"""Class for reading/writing dfs1 files."""
70+
6971
_ndim = 1
7072

7173
def __init__(self, filename: str | Path) -> None:

mikeio/dfs/_dfs2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def _write_dfs2_spatial_axis(
108108

109109

110110
class Dfs2(_Dfs123):
111+
"""Class for reading/writing dfs2 files."""
112+
111113
_ndim = 2
112114

113115
def __init__(

mikeio/dfs/_dfs3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def _write_dfs3_header(filename: str | Path, ds: Dataset, title: str) -> DfsFile
9999

100100

101101
class Dfs3(_Dfs123):
102+
"""Class for reading/writing dfs3 files."""
103+
102104
_ndim = 3
103105

104106
def __init__(self, filename: str | Path):

mikeio/dfsu/_dfsu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ def _get_dfsu_info(filename: str | Path) -> _DfsuInfo:
278278

279279

280280
class Dfsu2DH:
281+
"""Class for reading/writing dfsu 2d horizontal files."""
282+
281283
show_progress = False
282284

283285
def __init__(self, filename: str | Path) -> None:

mikeio/dfsu/_factory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@ def dfsu(filename: str | Path) -> Any:
3737

3838

3939
class Dfsu:
40+
"""Factory class for dfsu files."""
41+
4042
def __new__(self, filename: str | Path) -> Any:
4143
return dfsu(filename)

mikeio/dfsu/_layered.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ def append(self, ds: Dataset, validate: bool = True) -> None:
411411

412412

413413
class Dfsu2DV(DfsuLayered):
414+
"""Class for reading/writing dfsu 2d vertical files."""
415+
414416
def plot_vertical_profile(
415417
self,
416418
values: np.ndarray | DataArray,
@@ -465,6 +467,8 @@ def plot_vertical_profile(
465467

466468

467469
class Dfsu3D(DfsuLayered):
470+
"""Class for reading/writing dfsu 3d files."""
471+
468472
@property
469473
def geometry2d(self) -> GeometryFM2D:
470474
"""The 2d geometry for a 3d object."""

mikeio/dfsu/_spectral.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727

2828
class DfsuSpectral:
29+
"""Dfsu for Spectral data."""
30+
2931
show_progress = False
3032

3133
def __init__(self, filename: str | Path) -> None:

mikeio/eum/_eum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ def __repr__(self) -> str:
13991399

14001400

14011401
class ItemInfo:
1402-
"""ItemInfo.
1402+
"""Info for dynamicc items (variables).
14031403
14041404
Parameters
14051405
----------

0 commit comments

Comments
 (0)