Skip to content

Commit 82d1fc3

Browse files
committed
Run ruff format on ipynb's
1 parent efb730e commit 82d1fc3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

docs/examples/IBTrACS.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@
166166
"source": [
167167
"# Add basin with separate groupby\n",
168168
"max_winds = max_winds.join(\n",
169-
" ib_wmo[[\"basin\"]].groupby(ib_wmo.track_id).first().to_dataframe(),\n",
170-
" on=\"id_wmo\"\n",
169+
" ib_wmo[[\"basin\"]].groupby(ib_wmo.track_id).first().to_dataframe(), on=\"id_wmo\"\n",
171170
")"
172171
]
173172
},

docs/user_guide/extract.ipynb

+2-6
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,15 @@
235235
"# category 2\n",
236236
"tracks = huracanpy.load(huracanpy.example_csv_file)\n",
237237
"\n",
238-
"tracks[\"category\"] = huracanpy.utils.get_pressure_cat(\n",
239-
" tracks.slp, slp_units=\"Pa\"\n",
240-
")\n",
238+
"tracks[\"category\"] = huracanpy.utils.get_pressure_cat(tracks.slp, slp_units=\"Pa\")\n",
241239
"\n",
242240
"# Show the categories for each storm\n",
243241
"# Storms 0 and 2 reach category 2, and storm 1 only reaches category 1\n",
244242
"for track_id, track in tracks.groupby(\"track_id\"):\n",
245243
" print(\"track\", track_id, \"category\", int(track.category.max()))\n",
246244
"\n",
247245
"# Subset the tracks by category threshold which will remove track 1\n",
248-
"track_subset = huracanpy.trackswhere(\n",
249-
" tracks, lambda track: track.category.max() >= 2\n",
250-
")\n",
246+
"track_subset = huracanpy.trackswhere(tracks, lambda track: track.category.max() >= 2)\n",
251247
"\n",
252248
"# Confirm that track 1 has been filtered out\n",
253249
"print(\"\\n\", \"tracks remaining -\", set(track_subset.track_id.data))"

0 commit comments

Comments
 (0)