Skip to content

Commit 25d3bb9

Browse files
committed
[JTH] correct bug in documentation
1 parent d5e9a92 commit 25d3bb9

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: |
26-
pip install bluemath-tk[docs]
26+
pip install .[all]
2727
2828
- name: Sphinx build
2929
run: |

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ docs/logs/
7878
docs/jupyter_execute/
7979
docs/*.pkl
8080
.ruff_cache/
81+
*.rst
8182

8283
# MkDocs documentation (production)
8384
site/
@@ -104,8 +105,11 @@ venv.bak/
104105
notebooks/
105106
test_cases/
106107
test_data/
108+
109+
# Automation
107110
TODO.md
108111
newsletter.py
112+
notion/
109113

110114
# Tests
111115
tests/downloaders/

bluemath_tk/waves/calibration.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -174,36 +174,6 @@ class CalVal(BlueMathModel):
174174
The time domain is the same as the model data.
175175
calibration_params : dict
176176
Dictionary with 'sea_correction' and 'swell_correction' correction coefficients.
177-
178-
Examples
179-
--------
180-
.. jupyter-execute::
181-
182-
import pandas as pd
183-
from bluemath_tk.waves.calibration import CalVal, process_imos_satellite_data
184-
185-
# Load your model data (must have columns: 'Hs', 'Hsea', 'Dirsea', 'Hswell1', 'Dirswell1', ...)
186-
model_df = pd.read_csv('model_data.csv', index_col=0, parse_dates=True)
187-
188-
# Load IMOS satellite data and process it for calibration
189-
sat_df = pd.read_csv('imos_satellite.csv', index_col=0, parse_dates=True)
190-
data_to_calibrate = process_imos_satellite_data(
191-
sat_df, ini_lat=-40, end_lat=-30, ini_lon=140, end_lon=150
192-
)
193-
194-
# Initialize and fit the calibration
195-
cal = CalVal()
196-
cal.fit(
197-
data=model_df,
198-
data_longitude=145.0,
199-
data_latitude=-35.0,
200-
data_to_calibrate=data_to_calibrate,
201-
max_time_diff=2,
202-
)
203-
204-
# Plot results
205-
cal.plot_calibration_results()
206-
207177
"""
208178

209179
direction_bin_size: int = 22.5

0 commit comments

Comments
 (0)