(line)
| 72 | |
| 73 | |
| 74 | def parseMutantAttrs(line): |
| 75 | mutations = {} |
| 76 | pairs = [p.strip() for p in line.split(',')] |
| 77 | for pair in pairs: |
| 78 | try: |
| 79 | attrName, value = pair.split(' ') |
| 80 | except ValueError: |
| 81 | continue |
| 82 | try: |
| 83 | value = float(value) |
| 84 | except (ValueError, TypeError): |
| 85 | continue |
| 86 | attrInfo = getAttributeInfo(attrName.strip()) |
| 87 | if attrInfo is None: |
| 88 | continue |
| 89 | mutations[attrInfo.ID] = value |
| 90 | return mutations |
| 91 | |
| 92 | |
| 93 | def parseDynamicItemString(text): |
no test coverage detected