Skip to content

Commit

Permalink
refactor: ♻️ Update regression metrics in PPTXLayoutAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anselmoo committed Jan 21, 2024
1 parent 83ab4d1 commit b32a4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectrafit/api/pptx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ def __init__(self, format: str, data: PPTXDataAPI) -> None:
self.tmp_fname = self.tmp_plot(pd.DataFrame(data.output.df_fit))
self.title = data.input.description.project_name
self.df_gof = pd.DataFrame({k: [v] for k, v in data.solver.goodness_of_fit})
self.df_regression = pd.DataFrame(**data.solver.regression_metrics.dict())
self.df_regression = pd.DataFrame(**data.solver.regression_metrics.model_dump())
self.df_variables = pd.DataFrame.from_dict(
data.solver.variables, orient="index", columns=None
data.solver.variables, orient="index"
)

def tmp_plot(self, df_fit: pd.DataFrame) -> Path:
Expand Down

0 comments on commit b32a4d5

Please sign in to comment.