est.core.io.read_from_file#

est.core.io.read_from_file(file_path: str, energy_unit=<Unit('electron_volt')>, dimensions: ~typing.Sequence[int] | None = None, columns_names: dict | None = None, scan_title: str | None = None, timeout=1.0) XASObject[source]#
Parameters:
  • file_path (str) – path to the file containing the spectra. Must be a .dat file that pymca can handle or a .h5py with default path

  • dimensions (tuple) – dimensions of the input data. For ASCII file can be (X, Y) or (Y, X)

  • columns (Union[None,tuple]) – name of the column to take for .dat… files.

:return XasObject created from the input :rtype: XASObject