(line)
| 3 | import binascii |
| 4 | |
| 5 | def instance_direction_rect(line): # used when we only need bounding box (rect) of the cell. |
| 6 | |
| 7 | if 'N' in line or 'S' in line: |
| 8 | m_direction = (1, 0, 0, 1) |
| 9 | elif 'W' in line or 'E' in line: |
| 10 | m_direction = (0, 1, 1, 0) |
| 11 | else: |
| 12 | raise ValueError('read_macro_direction_wrong') |
| 13 | return m_direction |
| 14 | |
| 15 | def instance_direction_bottom_left(direction): # used when we need to get the bottom left corner of the cell. |
| 16 | if direction == 'N': |
no outgoing calls
no test coverage detected