PyDDM.ddm_analysis_and_fitting.save_fit_results_to_excel

PyDDM.ddm_analysis_and_fitting.save_fit_results_to_excel

save_fit_results_to_excel(fit_results, also_save_data=True, file_name_end=None, save_dir=None)

Saves fit results to Excel file

Metadata, fit results, and (optionally, if also_save_data is True (the default)) the data fit to are saved to an Excel file. Data is first converted to Pandas dataframe. Then the data is saved in a multi-sheet Excel (*.xlsx) file.

Parameters
  • fit_results (xarray Dataset) – Result of DDM fitting. Returned from PyDDM.ddm_analysis_and_fitting.DDM_Fit.fit()

  • also_save_data (bool, optional) – Data fit to (either ISF or DDM matrix) is also saved to Excel file. The default is True.

  • file_name_end (str, optional) – Append this string to the end of the saved filename. The default is None.

  • save_dir (str, optional) – Directory to save Excel file. The default is None. If None, then will use the DataDirectory which is (hopefully) an attribute of the fit_results Dataset.

Returns

Return type

None.