From 79e1d4d3e3992c432f830bb4cbf149e2767d7778 Mon Sep 17 00:00:00 2001
From: XANTRONIX Industrial <xan@xantronix.com>
Date: Tue, 15 Apr 2025 12:21:58 -0400
Subject: [PATCH] Save a few lines of code on setting parameters

---
 lib/xmet/bufr.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/xmet/bufr.py b/lib/xmet/bufr.py
index c0be9dd..d26ef60 100644
--- a/lib/xmet/bufr.py
+++ b/lib/xmet/bufr.py
@@ -86,11 +86,13 @@ class BUFRSounding(Sounding):
         request = DataAccessLayer.newDataRequest()
         request.setLocationNames(station)
         request.setDatatype(BUFRSounding.BUFR_TYPE)
-        request.setParameters('staElev', 'staName')
 
-        request.getParameters().extend(BUFRSounding.BUFR_PARAMS_MAN)
-        request.getParameters().extend(BUFRSounding.BUFR_PARAMS_SIGT)
-        request.getParameters().extend(BUFRSounding.BUFR_PARAMS_SIGW)
+        params = ['staElev', 'staName',
+                  *BUFRSounding.BUFR_PARAMS_MAN,
+                  *BUFRSounding.BUFR_PARAMS_SIGT,
+                  *BUFRSounding.BUFR_PARAMS_SIGW]
+
+        request.setParameters(*params)
 
         return request