MCPcopy Index your code
hub / github.com/plotly/plotly.py / unpack_rows

Function unpack_rows

_plotly_utils/png.py:997–1003  ·  view source on GitHub ↗

Unpack each row from being 16-bits per value, to being a sequence of bytes.

(rows)

Source from the content-addressed store, hash-verified

995
996
997def unpack_rows(rows):
998 """Unpack each row from being 16-bits per value,
999 to being a sequence of bytes.
1000 """
1001 for row in rows:
1002 fmt = "!%dH" % len(row)
1003 yield bytearray(struct.pack(fmt, *row))
1004
1005
1006def make_palette_chunks(palette):

Callers 1

write_passesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected