From 574d29d7d7e1a9b3d416453f174138ca04c05ac9 Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Sun, 18 Feb 2024 09:01:36 +0100 Subject: [PATCH] fix: :seedling: Reorganize report generation in report.py --- spectrafit/report.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spectrafit/report.py b/spectrafit/report.py index 9898db06b..c02142ace 100644 --- a/spectrafit/report.py +++ b/spectrafit/report.py @@ -177,7 +177,7 @@ def fit_report_as_dict( The report contains the best-fit values for the parameters and their uncertainties and correlations. The report is generated as dictionary and - consits of the following three main criteria: + consists of the following three main criteria: 1. Fit Statistics 2. Fit variables @@ -583,10 +583,10 @@ def generate_correlations(self) -> pd.DataFrame: def generate_report(self) -> Dict[str, pd.DataFrame]: """Generate a report. - !!! note "About the Report" - This report contains fit statistics, - correlations of components (if enabled), - and variables and values. + !!! info "About the Report" + + This report contains fit statistics, correlations of + components (if enabled), and variables and values. Returns: report (Dict[str, pd.DataFrame]): A dictionary containing @@ -594,9 +594,9 @@ def generate_report(self) -> Dict[str, pd.DataFrame]: """ report = {} report["Fit Statistics"] = self.generate_fit_statistics() + report["Variables and Values"] = self.generate_variables() if self.show_correl: report["Correlations of Components"] = self.generate_correlations() - report["Variables and Values"] = self.generate_variables() return report def __call__(self) -> None: