Skip to content

Commit 0445e3f

Browse files
authored
Merge pull request #1600 from Anselmoo/refactor/report
refactor: ♻️ Refactor dictionary comprehension for generating report
2 parents cd9c6ce + bf9c347 commit 0445e3f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spectrafit/report.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,10 @@ def generate_report(self) -> Dict[str, pd.DataFrame]:
696696
report (Dict[str, pd.DataFrame]): A dictionary containing
697697
the generated report.
698698
"""
699-
report = {}
700-
report["Fit Statistics"] = self.generate_fit_statistics()
701-
report["Variables and Values"] = self.generate_variables()
699+
report = {
700+
"Fit Statistics": self.generate_fit_statistics(),
701+
"Variables and Values": self.generate_variables(),
702+
}
702703
if self.show_correl:
703704
report["Correlations of Components"] = self.generate_correlations()
704705
return report

0 commit comments

Comments
 (0)