From facfd5cf8ec2c1b6f6a5173592d5de22dc1bb504 Mon Sep 17 00:00:00 2001 From: "Kharude, Sachin" Date: Mon, 6 Sep 2021 19:24:33 +0530 Subject: [PATCH] fixed lint Signed-off-by: Kharude, Sachin --- docs/notebooks/destination_weather.ipynb | 26 +++++++++++------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/docs/notebooks/destination_weather.ipynb b/docs/notebooks/destination_weather.ipynb index 18aaa48..2211051 100644 --- a/docs/notebooks/destination_weather.ipynb +++ b/docs/notebooks/destination_weather.ipynb @@ -5,7 +5,8 @@ "execution_count": null, "source": [ "import os\n", - "os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here." + "\n", + "os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here." ], "outputs": [], "metadata": {} @@ -24,10 +25,7 @@ "LS_API_KEY = os.environ.get(\"LS_API_KEY\")\n", "ls = LS(api_key=LS_API_KEY)\n", "\n", - "result1 = ls.get_dest_weather(\n", - " at=[19.1503, 72.8530],\n", - " products=[DEST_WEATHER_PRODUCT.observation]\n", - ")\n", + "result1 = ls.get_dest_weather(at=[19.1503, 72.8530], products=[DEST_WEATHER_PRODUCT.observation])\n", "\n", "results = []\n", "m = Map(\n", @@ -37,12 +35,12 @@ ")\n", "for observation in result1.places[0][\"observations\"]:\n", " results.append(\n", - " dict(\n", - " lat=observation[\"place\"][\"location\"][\"lat\"],\n", - " lng=observation[\"place\"][\"location\"][\"lng\"],\n", - " data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n", - " )\n", + " dict(\n", + " lat=observation[\"place\"][\"location\"][\"lat\"],\n", + " lng=observation[\"place\"][\"location\"][\"lng\"],\n", + " data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n", " )\n", + " )\n", "\n", "provider = MarkerCluster(data_points=results, show_bubble=True)\n", "layer = ObjectLayer(provider=provider)\n", @@ -60,10 +58,10 @@ "from datetime import datetime\n", "\n", "result2 = ls.get_weather_alerts(\n", - " geometry=Point(coordinates=[15.256, 23.456]),\n", - " start_time=datetime.now(),\n", - " width=3000,\n", - " )\n", + " geometry=Point(coordinates=[15.256, 23.456]),\n", + " start_time=datetime.now(),\n", + " width=3000,\n", + ")\n", "\n", "print(result2)" ],