Skip to content

Commit b6cdd8f

Browse files
committed
TL: bugfixes
1 parent 9cf00cf commit b6cdd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pySDC/core/sweeper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
# Organize QDeltaGenerator class in dict[type(QDeltaGenerator),set(str)] to retrieve aliases
11-
QDELTA_GENERATORS_ALIASES = {v: [] for v in set(QDELTA_GENERATORS.values())}
11+
QDELTA_GENERATORS_ALIASES = {v: set() for v in set(QDELTA_GENERATORS.values())}
1212
for k, v in QDELTA_GENERATORS.items():
1313
QDELTA_GENERATORS_ALIASES[v].add(k)
1414

@@ -262,9 +262,9 @@ def updateVariableCoeffs(self, k):
262262
k : int
263263
Index of the sweep (0 for initial sweep, 1 for the first one, ...).
264264
"""
265-
if self.genQI.isKDependent():
265+
if hasattr(self, "genQI") and self.genQI.isKDependent():
266266
qdType = type(self.genQI).__name__
267267
self.QI = self.get_Qdelta_implicit(qdType, k=k)
268-
if self.genQE.isKDependent():
268+
if hasattr(self, "genQE") and self.genQE.isKDependent():
269269
qdType = type(self.genQE).__name__
270270
self.QE = self.get_Qdelta_explicit(qdType, k=k)

0 commit comments

Comments
 (0)