grapa.parse.parser_generic

Generic file parser, to read data organized in columns, with some header lines at the beginning.

@author: Romain Carron Copyright (c) 2026, Empa, Laboratory for Thin Films and Photovoltaics, Romain Carron

Functions

read_file_as_lines(filename)

Reads a text file into a list of stripped lines, with encoding fallback.

Classes

FileParserGeneric()

Methods to parse a file, organized with header key-values, then multicolumn data