def checkValid(prop): if prop not in MinerExperiment.getValidProperties(): raise ValueError,"Property [%s] is not valid!\n" % prop