feat: get indexes of file header fields
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user