Skip to content

Commit

Permalink
Fixed EOF error when loading pickele files
Browse files Browse the repository at this point in the history
  • Loading branch information
evalaplace committed Oct 8, 2023
1 parent 66640a3 commit 2ea8a25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mesaPlot/file_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ea8a25

Please sign in to comment.