From 969ac010cfb0a5bc7f6c02ae9bc4232b3e3905b1 Mon Sep 17 00:00:00 2001 From: cs-hall <67027056+cs-hall@users.noreply.github.com> Date: Thu, 18 Dec 2025 11:49:26 -0500 Subject: [PATCH] Update log reading to allow reading python2 pickled slogs Change Unpickler encoding to 'latin1'. This should only change things when reading in slog files encoded with python 2. --- smile/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smile/log.py b/smile/log.py index 581b1b5..f952aa4 100644 --- a/smile/log.py +++ b/smile/log.py @@ -81,7 +81,7 @@ def __init__(self, filename, unwrap=False, **append_columns): self._append_columns = append_columns # set up the unpickler - self._unpickler = pickle.Unpickler(self._file) + self._unpickler = pickle.Unpickler(self._file, encoding="latin1") def read_record(self): """Returns a dicitionary with the field names as keys.