From 8abab8f4fb14762ce701a3ab6ca497fc32f8b018 Mon Sep 17 00:00:00 2001 From: Zach Sherman Date: Fri, 12 May 2023 10:21:59 -0500 Subject: [PATCH] FIX: Remove warning by using drop_vars instead. (#672) --- act/io/sodar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/io/sodar.py b/act/io/sodar.py index 5ac9eded54..52c7cd14de 100644 --- a/act/io/sodar.py +++ b/act/io/sodar.py @@ -130,7 +130,7 @@ def read_mfas_sodar(filepath): # Drop z as its already a coordinate and give coordinate the same attributes. ds.height.attrs = ds['z'].attrs - ds = ds.drop('z') + ds = ds.drop_vars('z') return ds