eispac.core.export_fits(fit_result, save_dir=None, verbose=False)[source]

Save fit line intensites, velocites, and widths to a .fits file

  • fit_result (EISFitResult object) – Fit parameter results from eispac.fit_spectra()

  • save_dir (str or pathlib.Path object, optional) – Directory where the fit results should be saved. If set to None, the results will be saved in the same folder as the source data. If set to, ‘cwd’, the results will be saved to the current working directory. Default is None.

  • verbose (bool, optional) – If set to True, will print additional information to the console. Default is False.


output_filepath – Path object pointing to the output files. Each parameter is saved in a seperate file and, if there are more than one spectral lines fit, in the template, each line will be saved to its own set of files.

Return type:

list of pathlib.Path objects