grapa.parse.parser_dispatcher

Class and functions assisting with import and export of data.

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

Functions

file_read_first3lines(filename)

Returns the first 3 lines of a file.

load_graph(graph, filename[, complement, ...])

Loads the content of a Graph, called by Graph constructor

Classes

FileParserDispatcher()

By default, 3 different reading modes are possible: 1.

ReadAs(value)

for complement={"readas": "database"}, tested: 'readas' in ['database', 'generic']