def permutationFilter(perm):
 if (perm['modelParams']['sensorParams']['encoders']['consumption']['maxval'] > 250):
  return False
 return True

def permutationFilter ( perm ) : if ( perm [ 'modelParams' ] [ 'sensorParams' ] [ 'encoders' ] [ 'consumption' ] [ 'maxval' ] > 250 ) : return False return True
this function can be used to selectively filter out specific permutation combinations .