def checkStreamInstructionsSets(self, argument, instructions, isInput):

     # Check that the 'default' instructions are present.
     if 'default' not in instructions.keys(): self.errors.noDefaultStream(self.name, argument, isInput)

     # Loop over each of the sets of instructions and check they are valid.
     for setName in instructions.keys():

       # Check that there is a valid argument.
       if 'argument' not in instructions[setName]: self.errors.noArgumentInStreamInstructions(self.name, argument, setName, isInput, 'argument')
       if 'value' not in instructions[setName]: self.errors.noArgumentInStreamInstructions(self.name, argument, setName, isInput, 'value')

  # Check values supplied to construction instructions.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkStreamInstructionsSets/original