From a899ef6a6e4228e49a079f423c33f353e89cb677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=86=D0=9C-24=20=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81?= =?UTF-8?q?=D0=BB=D0=B0=D0=B2=20=D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=BA=D0=BE?= Date: Tue, 3 Mar 2026 14:10:18 +0000 Subject: [PATCH] feat: get indexes of file header fields --- MapView/fileReader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MapView/fileReader.py b/MapView/fileReader.py index 057ad93..2497385 100644 --- a/MapView/fileReader.py +++ b/MapView/fileReader.py @@ -16,6 +16,10 @@ class FileReader: self.file = open(self.file_path, newline='') self.file_reader = reader(self.file) file_header = next(self.file_reader) + + self.x_idx = file_header.index('X') + self.y_idx = file_header.index('Y') + self.z_idx = file_header.index('Z') def stopReading(self, *args, **kwargs): if self.file: