(level, bounds)
| 71 | |
| 72 | |
| 73 | def shouldRefine(level, bounds): |
| 74 | if level >= TARGET_LEVEL: |
| 75 | return False |
| 76 | origin = mandelbrotTest(bounds[0], bounds[2]) |
| 77 | originX = mandelbrotTest(bounds[1], bounds[2]) |
| 78 | originY = mandelbrotTest(bounds[0], bounds[3]) |
| 79 | originXY = mandelbrotTest(bounds[1], bounds[3]) |
| 80 | canRefine = bounds[4] < 0.01 |
| 81 | |
| 82 | if canRefine: |
| 83 | if origin and originX and originY and originXY: |
| 84 | return False |
| 85 | if not origin and not originX and not originY and not originXY: |
| 86 | return False |
| 87 | return True |
| 88 | return False |
| 89 | |
| 90 | |
| 91 | def handleNode(cursor, sideArray, levelArray): |
no test coverage detected