pynxxas.io.xas_beamlines.GenericBeamlineData#

class pynxxas.io.xas_beamlines.GenericBeamlineData(headerlines=None)[source]#

Bases: object

Generic beamline data file - use as last resort

This parses the last header line for labels: First, it remove any leading ‘#’, ‘#C’, ‘#L’, and ‘C’ as if collected by Spec or many other collection systems.

Next, it removes bad characters ‘,#@%&’ and quotes. Then, it splits on whitespace and fixes names to make sure they are valid variable names

beamline_matches()[source]#
energy_column = 1#
energy_units = 'eV'#
get_array_labels(ncolumns=None)[source]#
mono_dspace = -1#
name = 'generic'#