From 0ff2cb012995eeb541dd329935893a29f87cd9fb Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Wed, 19 Oct 2022 05:12:17 -0700 Subject: [PATCH] Pass option_dict to get_aggregate() in wind version of get_series() The function xtypes.ArchiveTable.get_series() does not pass option_dict on to get_aggregate(). Fixes issue #797 --- bin/weewx/xtypes.py | 2 +- docs/changes.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/weewx/xtypes.py b/bin/weewx/xtypes.py index cd2a4ecb..48fe9f83 100644 --- a/bin/weewx/xtypes.py +++ b/bin/weewx/xtypes.py @@ -783,7 +783,7 @@ class WindVec(XType): # Yes. Just use the regular series function. When it comes time to do the aggregation, # the specialized function WindVec.get_aggregate() (defined below), will be used. return ArchiveTable.get_series(obs_type, timespan, db_manager, aggregate_type, - aggregate_interval) + aggregate_interval, **option_dict) else: # No aggregation desired. However, we have will have to assemble the wind vector from diff --git a/docs/changes.txt b/docs/changes.txt index ce8fb4b0..e0f9bb58 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -51,6 +51,9 @@ PR #705. Fix minor install warning under Python 3.10. Fixes issue #799. +Fix problem where xtypes.ArchiveTable.get_series() does not pass option_dict +on to get_aggregate(). Fixes issue #797 + 4.8.0 04/21/2022 Allow unit to be overridden for a specific plot by using new option 'unit'.