Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit facfd5c

Browse files
author
Kharude, Sachin
committed
fixed lint
Signed-off-by: Kharude, Sachin <[email protected]>
1 parent bd4f6a3 commit facfd5c

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

docs/notebooks/destination_weather.ipynb

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"execution_count": null,
66
"source": [
77
"import os\n",
8-
"os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here."
8+
"\n",
9+
"os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here."
910
],
1011
"outputs": [],
1112
"metadata": {}
@@ -24,10 +25,7 @@
2425
"LS_API_KEY = os.environ.get(\"LS_API_KEY\")\n",
2526
"ls = LS(api_key=LS_API_KEY)\n",
2627
"\n",
27-
"result1 = ls.get_dest_weather(\n",
28-
" at=[19.1503, 72.8530],\n",
29-
" products=[DEST_WEATHER_PRODUCT.observation]\n",
30-
")\n",
28+
"result1 = ls.get_dest_weather(at=[19.1503, 72.8530], products=[DEST_WEATHER_PRODUCT.observation])\n",
3129
"\n",
3230
"results = []\n",
3331
"m = Map(\n",
@@ -37,12 +35,12 @@
3735
")\n",
3836
"for observation in result1.places[0][\"observations\"]:\n",
3937
" results.append(\n",
40-
" dict(\n",
41-
" lat=observation[\"place\"][\"location\"][\"lat\"],\n",
42-
" lng=observation[\"place\"][\"location\"][\"lng\"],\n",
43-
" data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n",
44-
" )\n",
38+
" dict(\n",
39+
" lat=observation[\"place\"][\"location\"][\"lat\"],\n",
40+
" lng=observation[\"place\"][\"location\"][\"lng\"],\n",
41+
" data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n",
4542
" )\n",
43+
" )\n",
4644
"\n",
4745
"provider = MarkerCluster(data_points=results, show_bubble=True)\n",
4846
"layer = ObjectLayer(provider=provider)\n",
@@ -60,10 +58,10 @@
6058
"from datetime import datetime\n",
6159
"\n",
6260
"result2 = ls.get_weather_alerts(\n",
63-
" geometry=Point(coordinates=[15.256, 23.456]),\n",
64-
" start_time=datetime.now(),\n",
65-
" width=3000,\n",
66-
" )\n",
61+
" geometry=Point(coordinates=[15.256, 23.456]),\n",
62+
" start_time=datetime.now(),\n",
63+
" width=3000,\n",
64+
")\n",
6765
"\n",
6866
"print(result2)"
6967
],

0 commit comments

Comments
 (0)