You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,46 @@ By contributing to the BlueMath package, you agree that your contributions will
70
70
If you have any questions or need further assistance, feel free to reach out to the maintainers.
71
71
72
72
Thank you for your contributions and support!
73
+
74
+
## Documentation
75
+
76
+
When creating new `python` code, it is essential to properly document all new classes and functions. Below, we show how the **docstrings** of classes should look, so the community can properly learn how to use **BlueMath**.
77
+
78
+
Code example:
79
+
```python
80
+
import numpy as np
81
+
82
+
classHyWavesExample:
83
+
"""
84
+
This class implements a HyWaves Metamodel Example for nearshore wave propagations.
85
+
86
+
Attributes
87
+
----------
88
+
waves_model : str
89
+
The waves numerical model to use.
90
+
statistical_model : str, optional
91
+
The statistical model to use. Default is "MDA".
92
+
93
+
Methods
94
+
-------
95
+
run_model -> np.ndarray
96
+
Runs the waves numerical model and returns the output.
0 commit comments