Skip to content

Commit 9f4f318

Browse files
committed
Fixes
1 parent 76f4b85 commit 9f4f318

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

pySDC/helpers/transfer_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def next_neighbors_periodic(p, ps, k):
2727

2828
# zip it
2929
value_index = []
30-
for d, i in zip(distance_to_p, range(distance_to_p.size, strict=True)):
30+
for d, i in zip(distance_to_p, range(distance_to_p.size), strict=True):
3131
value_index.append((d, i))
3232
# sort by distance
3333
value_index_sorted = sorted(value_index, key=lambda s: s[0])
@@ -53,7 +53,7 @@ def next_neighbors(p, ps, k):
5353
distance_to_p = np.abs(ps - p)
5454
# zip it
5555
value_index = []
56-
for d, i in zip(distance_to_p, range(distance_to_p.size, strict=True)):
56+
for d, i in zip(distance_to_p, range(distance_to_p.size), strict=True):
5757
value_index.append((d, i))
5858
# sort by distance
5959
value_index_sorted = sorted(value_index, key=lambda s: s[0])

pySDC/projects/GPU/analysis_scripts/plot_RBC_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def plot_preconditioners(): # pragma: no cover
1515

1616
fig, axs = plt.subplots(1, 4, figsize=figsize_by_journal('TUHH_thesis', 1, 0.4), sharex=True, sharey=True)
1717

18-
for M, ax in zip([A, A_b, A_r, A_l], axs):
18+
for M, ax in zip([A, A_b, A_r, A_l], axs, strict=True):
1919
ax.imshow((M / abs(M)).real + (M / abs(M)).imag, rasterized=False, cmap='Spectral')
2020

2121
for ax in axs:

pySDC/projects/PinTSimE/battery_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def getDataDict(stats, prob_cls_name, use_adaptivity, use_detection, recomputed,
578578
if not all(t is None for t in t_switch_exact):
579579
event_err = [
580580
abs(num_item - ex_item)
581-
for (num_item, ex_item) in zip(res['t_switches'], res['t_switch_exact'], strict=True)
581+
for (num_item, ex_item) in zip(res['t_switches'], res['t_switch_exact'], strict=False)
582582
]
583583
res['e_event'] = event_err
584584

pySDC/projects/parallelSDC_reloaded/convergence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def getError(uNum, uRef):
4646
# Script execution
4747
# -----------------------------------------------------------------------------
4848
plt.figure()
49-
for (qDelta, nSweeps), style in zip(schemes, styles, strict=True):
49+
for (qDelta, nSweeps), style in zip(schemes, styles, strict=False):
5050
if nSweeps is None:
5151
params = getParamsRK(qDelta)
5252
label = None

pySDC/projects/parallelSDC_reloaded/scripts/fig01_conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def getError(uNum, uRef):
6666
# Figure generation
6767
figName = f"{sweepType}_{quadType}"
6868
plt.figure(f"{sweepType}_{quadType}")
69-
for (qDelta, nSweeps), style in zip(schemes, styles, strict=True):
69+
for (qDelta, nSweeps), style in zip(schemes, styles, strict=False):
7070
params = getParamsSDC(quadType, nNodes, qDelta, nSweeps, nodeType)
7171
label = f"$K={nSweeps}$"
7272
errors = []

pySDC/projects/parallelSDC_reloaded/scripts/fig03_lorenz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def getError(uNum, uRef):
6969

7070

7171
config = ["PIC", "MIN-SR-NS"]
72-
for qDelta, sym in zip(config, symList, strict=True):
72+
for qDelta, sym in zip(config, symList, strict=False):
7373
figName = f"{SCRIPT}_conv_{qDelta}"
7474
plt.figure(figName)
7575

@@ -132,7 +132,7 @@ def getCost(counters):
132132
i += 1
133133
plt.figure(figName)
134134

135-
for qDelta, sym in zip(qDeltaList, symList, strict=True):
135+
for qDelta, sym in zip(qDeltaList, symList, strict=False):
136136
try:
137137
params = getParamsRK(qDelta)
138138
except KeyError:

pySDC/projects/parallelSDC_reloaded/scripts/fig04_protheroRobinson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def getCost(counters):
6060
figNameCost = f"{SCRIPT}_cost_{i}"
6161
i += 1
6262

63-
for qDelta, sym in zip(qDeltaList, symList, strict=True):
63+
for qDelta, sym in zip(qDeltaList, symList, strict=False):
6464
try:
6565
params = getParamsRK(qDelta)
6666
except KeyError:

pySDC/projects/parallelSDC_reloaded/scripts/fig05_allenCahn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def getCost(counters):
8484
figNameCost = f"{SCRIPT}_cost_{i}"
8585
i += 1
8686

87-
for qDelta, sym in zip(qDeltaList, symList, strict=True):
87+
for qDelta, sym in zip(qDeltaList, symList, strict=False):
8888
try:
8989
params = getParamsRK(qDelta)
9090
except KeyError:

pySDC/projects/parallelSDC_reloaded/scripts/fig06_allenCahnMPI_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
figNameConv = f"{SCRIPT}_conv_1"
3737
figNameCost = f"{SCRIPT}_cost_1"
3838

39-
for qDelta, sym in zip(qDeltaList, symList, strict=True):
39+
for qDelta, sym in zip(qDeltaList, symList, strict=False):
4040
if qDelta == "MIN-SR-NS":
4141
res = timings["MIN-SR-S_MPI"].copy()
4242
res["errors"] = [np.nan for _ in res["errors"]]

0 commit comments

Comments
 (0)