Skip to content

Commit a75b78c

Browse files
committed
Fix loading header info
1 parent 299e270 commit a75b78c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesaPlot/file_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __getitem__(self, key):
208208
try:
209209
return self.__dict__[key]
210210
except KeyError:
211-
raise AttributeError("No attribute " + str(key))
211+
raise AttributeError(f"No attribute {key} found")
212212

213213
def __iter__(self):
214214
if len(self.data):
@@ -326,7 +326,7 @@ def _loadFile(self, filename, max_num_lines=-1, cols=[], final_lines=-1):
326326
# for i in head:
327327
# self.head[i] = head[i].to_numpy()
328328

329-
records = data.to_records(index=False)
329+
records = head.to_records(index=False)
330330
self.head = np.array(records, dtype = records.dtype.descr)
331331

332332

0 commit comments

Comments
 (0)