def scalarsToStr(self, scalarValues, scalarNames=None):
if scalarNames is None:<EOL><INDENT>scalarNames = self.getScalarNames()<EOL><DEDENT>desc = '<STR_LIT>'<EOL>for (name, value) in zip(scalarNames, scalarValues):<EOL><INDENT>if len(desc) > <NUM_LIT:0>:<EOL><INDENT>desc += "<STR_LIT>" % (name, value)<EOL><DEDENT>else:<EOL><INDENT>desc += "<STR_LIT>" % (name, value)<EOL><DEDENT><DEDENT>return desc<EOL>
Return a pretty print string representing the return values from
:meth:`.getScalars` and :meth:`.getScalarNames`.

:param scalarValues: input values to encode to string
:param scalarNames: optional input of scalar names to convert. If None, gets
                   scalar names from :meth:`.getScalarNames`
:return: string representation of scalar values