Changeset 82641 in vbox
- Timestamp:
- Dec 22, 2019 10:04:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/base.py
r79087 r82641 1284 1284 return self; 1285 1285 1286 def strainParameters(self, dParams, aAdditionalParams = None): 1287 """ Filters just the parameters relevant to this filter, returning a copy. """ 1288 1289 # Collect the parameter names. 1290 dWanted = dict(); 1291 for oCrit in self.aCriteria: 1292 dWanted[oCrit.sVarNm] = 1; 1293 if oCrit.sInvVarNm: 1294 dWanted[oCrit.sInvVarNm] = 1; 1295 1296 # Add additional stuff. 1297 if aAdditionalParams: 1298 for sParam in aAdditionalParams: 1299 dWanted[sParam] = 1; 1300 1301 # To the straining. 1302 dRet = dict(); 1303 for sKey in dParams: 1304 if sKey in dWanted: 1305 dRet[sKey] = dParams[sKey]; 1306 return dRet; 1307 1286 1308 1287 1309 class ModelLogicBase(ModelBase): # pylint: disable=too-few-public-methods
Note:
See TracChangeset
for help on using the changeset viewer.