From defb93ee2af65d2bf1d134279fffa014b3da9af6 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Fri, 27 Aug 2021 14:38:09 -0400 Subject: [PATCH] Completed clean_string_values function. --- python/swiftest/swiftest/io.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/swiftest/swiftest/io.py b/python/swiftest/swiftest/io.py index 85d99d4f6..1eb8df95e 100644 --- a/python/swiftest/swiftest/io.py +++ b/python/swiftest/swiftest/io.py @@ -721,11 +721,10 @@ def clean_string_values(param, ds): Returns ------- - dscleanstring : xarray dataset with the strings cleaned up + ds : xarray dataset with the strings cleaned up """ - - dscleanstring = ds - return dscleanstring + ds['name'] = ds['name'].str.decode(encoding='utf-8') + return ds def swiftest_particle_stream(f):