File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 ())}
1212for 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 )
You can’t perform that action at this time.
0 commit comments