Skip to content

Commit

Permalink
bug fix: peak computed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
olive004 committed Oct 25, 2024
1 parent 4fb0410 commit a21fb1f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
42 changes: 24 additions & 18 deletions notebooks/22_adaptation_autograd.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion synbio_morpher/utils/results/analytics/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def generate_base_analytics(data: jnp.ndarray, t: jnp.ndarray, labels: List[str]
steady_states=analytics['steady_states']
)

peaks = compute_peaks(analytics['steady_states'],
peaks = compute_peaks(analytics['initial_steady_states'], analytics['steady_states'],
analytics['max_amount'], analytics['min_amount'])

analytics['overshoot'] = compute_overshoot(
Expand Down

0 comments on commit a21fb1f

Please sign in to comment.