Skip to content

Commit c83fbf5

Browse files
committed
[JTH] add more info to __init__s in submodules
1 parent 1aaefe2 commit c83fbf5

File tree

11 files changed

+99
-7
lines changed

11 files changed

+99
-7
lines changed

bluemath_tk/core/__init__.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""
2+
Project: BlueMath_tk
3+
Sub-Module: core
4+
Author: GeoOcean Research Group, Universidad de Cantabria
5+
Creation Date: 9 December 2024
6+
Repository: https://github.com/GeoOcean/BlueMath_tk.git
7+
Status: Under development (Working)
8+
"""
9+
10+
# Import essential functions/classes to be available at the package level.
11+
from .dask import setup_dask_client
12+
from .operations import (
13+
convert_lonlat_to_utm,
14+
convert_utm_to_lonlat,
15+
denormalize,
16+
destandarize,
17+
get_degrees_from_uv,
18+
get_uv_components,
19+
mathematical_to_nautical,
20+
nautical_to_mathematical,
21+
normalize,
22+
spatial_gradient,
23+
standarize,
24+
)
25+
26+
# Optionally, define the module's `__all__` variable to control what gets imported when using `from module import *`.
27+
__all__ = [
28+
"setup_dask_client",
29+
"convert_lonlat_to_utm",
30+
"convert_utm_to_lonlat",
31+
"denormalize",
32+
"destandarize",
33+
"get_degrees_from_uv",
34+
"get_uv_components",
35+
"mathematical_to_nautical",
36+
"nautical_to_mathematical",
37+
"normalize",
38+
"spatial_gradient",
39+
"standarize",
40+
]

bluemath_tk/datamining/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Sub-Module: datamining
44
Author: GeoOcean Research Group, Universidad de Cantabria
55
Creation Date: 19 January 2024
6-
License: MIT
76
Repository: https://github.com/GeoOcean/BlueMath_tk.git
87
Status: Under development (Working)
98
"""

bluemath_tk/datamining/_base_datamining.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ def plot_selected_centroids(
243243
sharex=False,
244244
sharey=False,
245245
)
246+
if isinstance(axes, Axes):
247+
axes = np.array([[axes]])
246248

247249
for c1, v1 in enumerate(variables_names[1:]):
248250
for c2, v2 in enumerate(variables_names[:-1]):

bluemath_tk/downloaders/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Sub-Module: downloaders
44
Author: GeoOcean Research Group, Universidad de Cantabria
55
Creation Date: 9 August 2024
6-
License: MIT
76
Repository: https://github.com/GeoOcean/BlueMath_tk.git
87
Status: Under development (Working)
98
"""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Project: BlueMath_tk
3+
Sub-Module: interpolation
4+
Author: GeoOcean Research Group, Universidad de Cantabria
5+
Creation Date: 19 January 2025
6+
Repository: https://github.com/GeoOcean/BlueMath_tk.git
7+
Status: Under development (Working)
8+
"""
9+
10+
# Import essential functions/classes to be available at the package level.
11+
from ._base_interpolation import BaseInterpolation
12+
from .rbf import RBF
13+
14+
# Optionally, define the module's `__all__` variable to control what gets imported when using `from module import *`.
15+
__all__ = [
16+
"BaseInterpolation",
17+
"RBF",
18+
]

bluemath_tk/predictor/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Project: BlueMath_tk
33
Sub-Module: predictor
44
Author: GeoOcean Research Group, Universidad de Cantabria
5-
Creation Date: 19 March 2024
6-
License: MIT
5+
Creation Date: 19 March 2025
76
Repository: https://github.com/GeoOcean/BlueMath_tk.git
87
Status: Under development (Working)
98
"""

bluemath_tk/setup/__init__.py

Whitespace-only changes.

bluemath_tk/topo_bathy/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
Project: BlueMath_tk
3+
Sub-Module: topo_bathy
4+
Author: GeoOcean Research Group, Universidad de Cantabria
5+
Creation Date: 19 April 2025
6+
Repository: https://github.com/GeoOcean/BlueMath_tk.git
7+
Status: Under development (Working)
8+
"""

bluemath_tk/topo_bathy/profiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def biparabolic(h0, hsig, omega_surf_list, TR):
128128
hr = 1.1 * hsig + TR
129129

130130
# Legal point
131-
ha = 3 * hsig + TR
131+
_ha = 3 * hsig + TR
132132

133133
# Empirical adjusted parameters
134134
A = 0.21 - 0.02 * omega_surf_list
@@ -141,7 +141,7 @@ def biparabolic(h0, hsig, omega_surf_list, TR):
141141
h_cont = []
142142

143143
# Important points for the profile
144-
xr = (hr / A) ** (3 / 2) + (B / (A ** (3 / 2))) * hr**3
144+
_xr = (hr / A) ** (3 / 2) + (B / (A ** (3 / 2))) * hr**3
145145

146146
# Lines for the profile
147147
x, Xx, X, xX = [], [], [], []

bluemath_tk/waves/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""
2+
Project: BlueMath_tk
3+
Sub-Module: waves
4+
Author: GeoOcean Research Group, Universidad de Cantabria
5+
Creation Date: 19 February 2025
6+
Repository: https://github.com/GeoOcean/BlueMath_tk.git
7+
Status: Under development (Working)
8+
"""
9+
10+
# Import essential functions/classes to be available at the package level.
11+
from .binwaves import (
12+
generate_swan_cases,
13+
plot_selected_cases_grid,
14+
plot_selected_subset_parameters,
15+
process_kp_coefficients,
16+
reconstruc_spectra,
17+
)
18+
from .estela import ESTELA
19+
20+
# Optionally, define the module's `__all__` variable to control what gets imported when using `from module import *`.
21+
__all__ = [
22+
"generate_swan_cases",
23+
"reconstruc_spectra",
24+
"process_kp_coefficients",
25+
"plot_selected_cases_grid",
26+
"plot_selected_subset_parameters",
27+
"ESTELA",
28+
]

0 commit comments

Comments
 (0)