def readLocationElement(self, locationElement):
if self._strictAxisNames and not self.documentObject.axes:<EOL><INDENT>raise DesignSpaceDocumentError("<STR_LIT>")<EOL><DEDENT>loc = {}<EOL>for dimensionElement in locationElement.findall("<STR_LIT>"):<EOL><INDENT>dimName = dimensionElement.attrib.get("<STR_LIT:name>")<EOL>if self._strictAxisNames and dimName not in self.axisDefaults:<EOL><INDENT>self.log.warning("<STR_LIT>", dimName)<EOL>continue<EOL><DEDENT>xValue = yValue = None<EOL>try:<EOL><INDENT>xValue = dimensionElement.attrib.get('<STR_LIT>')<EOL>xValue = float(xValue)<EOL><DEDENT>except ValueError:<EOL><INDENT>self.log.warning("<STR_LIT>", xValue)<EOL><DEDENT>try:<EOL><INDENT>yValue = dimensionElement.attrib.get('<STR_LIT>')<EOL>if yValue is not None:<EOL><INDENT>yValue = float(yValue)<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>if yValue is not None:<EOL><INDENT>loc[dimName] = (xValue, yValue)<EOL><DEDENT>else:<EOL><INDENT>loc[dimName] = xValue<EOL><DEDENT><DEDENT>return loc<EOL>
Format 0 location reader