Skip to content

Commit

Permalink
Removed loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lisawim committed Apr 18, 2024
1 parent e8bf17e commit 2affa75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pySDC/projects/PinTSimE/estimation_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ def plotStateFunctionAroundEvent(u_num, prob_cls_name, M_fix): # pragma: no cov
if use_SE:
t_switches = [u_num[dt][M_fix][use_SE][use_A]['t_switches'] for dt in dt_list]
for t_switch_item in t_switches:
for m in range(1, len(t_switch_item)):
mask = np.append([True], np.abs(t_switch_item[1:] - t_switch_item[:-1]) > 1e-10)
t_switch_item = t_switch_item[mask]
mask = np.append([True], np.abs(t_switch_item[1:] - t_switch_item[:-1]) > 1e-10)
t_switch_item = t_switch_item[mask]

t_switch = [t_event[i] for t_event in t_switches]
ax[0, ind].plot(
Expand Down

0 comments on commit 2affa75

Please sign in to comment.