def _parse_precinct_size(spcod):
spcod = np.frombuffer(spcod, dtype=np.uint8)<EOL>precinct_size = []<EOL>for item in spcod:<EOL><INDENT>ep2 = (item & <NUM_LIT>) >> <NUM_LIT:4><EOL>ep1 = item & <NUM_LIT><EOL>precinct_size.append((<NUM_LIT:2> ** ep1, <NUM_LIT:2> ** ep2))<EOL><DEDENT>return tuple(precinct_size)<EOL>
Compute precinct size from SPcod or SPcoc.