def encodeIntoArray(self, inputVal, outputVal):
if len(inputVal) != len(outputVal):<EOL><INDENT>raise ValueError("<STR_LIT>" % (<EOL>len(inputVal), len(outputVal)))<EOL><DEDENT>if self.w is not None and sum(inputVal) != self.w:<EOL><INDENT>raise ValueError("<STR_LIT>" % (<EOL>sum(inputVal), self.w))<EOL><DEDENT>outputVal[:] = inputVal[:]<EOL>if self.verbosity >= <NUM_LIT:2>:<EOL><INDENT>print("<STR_LIT>", inputVal, "<STR_LIT>", outputVal)<EOL>print("<STR_LIT>", self.decodedToStr(self.decode(outputVal)))<EOL><DEDENT>
See method description in base.py