From f635e83051be96cf424b01d551392898743538bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 26 Mar 2024 08:21:08 -0700 Subject: [PATCH] Exclude station when searching for empty rows --- src/lvmapi/tools/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lvmapi/tools/weather.py b/src/lvmapi/tools/weather.py index 98d0cb3..03a2eb8 100644 --- a/src/lvmapi/tools/weather.py +++ b/src/lvmapi/tools/weather.py @@ -13,7 +13,7 @@ from astropy.time import Time, TimeDelta -__all__ = ['get_weather_data'] +__all__ = ["get_weather_data"] WEATHER_URL = "http://dataservice.lco.cl/vaisala/data" @@ -99,7 +99,7 @@ async def get_weather_data( ) # Delete rows with all null values. - df = df.filter(~polars.all_horizontal(polars.exclude("ts").is_null())) + df = df.filter(~polars.all_horizontal(polars.exclude("ts", "station").is_null())) # Sort by timestamp df = df.sort("ts")