helper module
Define some common helpers for loading data.
- read_header(filepath, sep='\\t', comment='#')
Get the line describing columns content.
It is the first line of the files that does not start with a comment character. Header of first column can be anything. Header of following columns must hold incidence angle and be convertable to a float.
- Parameters:
- Return type:
- Returns:
list[str] – Columns descriptors. First column is
Energy [eV]. Following is/aretheta [deg], wherethetais the value of the incidence angle.int – Number of comment lines before the header.