From 683d05d4f77d1ddf0d753c627610aed0f1a4eaae Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Mon, 4 May 2026 20:40:33 +0100 Subject: rename filter_df() to process_stations() for clarity --- fnme/cli.py | 4 ++-- fnme/station.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fnme/cli.py b/fnme/cli.py index d9ef508..385af76 100644 --- a/fnme/cli.py +++ b/fnme/cli.py @@ -7,7 +7,7 @@ from tabulate import tabulate from fnme.constants import SORT_KV from fnme.data import get_latest_data from fnme.geo import get_location -from fnme.station import filter_df, sort_stations +from fnme.station import process_stations, sort_stations def parse_args() -> argparse.Namespace: @@ -49,7 +49,7 @@ def main(): print(f"Last updated: {last_modified}") - df_filtered = filter_df(df, args, location) + df_filtered = process_stations(df, args, location) sorted_stations_list = sort_stations(df_filtered, args.sort) diff --git a/fnme/station.py b/fnme/station.py index c971173..6cfc5d1 100644 --- a/fnme/station.py +++ b/fnme/station.py @@ -8,7 +8,7 @@ import pandas as pd from fnme.constants import SORT_KV -def filter_df( +def process_stations( dframe: pd.DataFrame, arguments: argparse.Namespace, loc: Tuple[float, float] ) -> List[Dict[str, Any]]: -- cgit v1.2.3