From 2ea8a254692957c92d0cd7f74788292140f14cce Mon Sep 17 00:00:00 2001 From: elaplace Date: Sun, 8 Oct 2023 13:58:48 +0200 Subject: [PATCH] Fixed EOF error when loading pickele files --- mesaPlot/file_reader.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mesaPlot/file_reader.py b/mesaPlot/file_reader.py index 084ff24..d44bf89 100644 --- a/mesaPlot/file_reader.py +++ b/mesaPlot/file_reader.py @@ -272,9 +272,11 @@ def _loadPickle(self, pickname, filename): ) or not os.path.exists(filename): # Data has not changed # Get Data - self.data = pickle.load(f) - self.head = pickle.load(f) - self._loaded = True + self.data = pickhash.data + self.head = pickhash.head + self.head_names = pickhash.head.dtype.names + self.data_names = pickhash.data.dtype.names + self._loaded = pickhash._loaded return True return False