Skip to content

Commit

Permalink
minor bugfixes analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Mar 25, 2021
1 parent 8677730 commit 55f1104
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sbmlsim/fit/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(
absolute_tolerance: float = 1e-6,
relative_tolerance: float = 1e-6,
image_format: str = "svg",
**kwargs
) -> None:
"""Construct Optimization analysis.
Expand Down Expand Up @@ -78,6 +79,11 @@ def __init__(
self.show_plots = show_plots
self.show_titles = show_titles

if kwargs:
for key, value in kwargs.items():
logger.warning(f"Argument to OptimizationAnalysis is not supported: "
f"'{key}'")

if op:
op.initialize(
residual=residual,
Expand Down Expand Up @@ -189,6 +195,11 @@ def run(self, mpl_parameters: Dict[str, Any] = None) -> None:
# reset parameters
plt.rcParams.update(rc_params_copy)

print("-" * 80)
print(f"Analysis finished: {str(self.results_dir / 'index.html')}")

print("-" * 80)

def html_report(self, path: Path):
"""Creates HTML report of the fit."""

Expand Down

0 comments on commit 55f1104

Please sign in to comment.