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

Method _iter_bytes_to_values

_plotly_utils/png.py:1523–1532  ·  view source on GitHub ↗

Iterator that yields each scanline; each scanline being a sequence of values. `byte_rows` should be an iterator that yields the bytes of each row in turn.

(self, byte_rows)

Source from the content-addressed store, hash-verified

1521 return a
1522
1523 def _iter_bytes_to_values(self, byte_rows):
1524 """
1525 Iterator that yields each scanline;
1526 each scanline being a sequence of values.
1527 `byte_rows` should be an iterator that yields
1528 the bytes of each row in turn.
1529 """
1530
1531 for row in byte_rows:
1532 yield self._bytes_to_values(row)
1533
1534 def _bytes_to_values(self, bs, width=None):
1535 """Convert a packed row of bytes into a row of values.

Callers 1

readMethod · 0.95

Calls 1

_bytes_to_valuesMethod · 0.95

Tested by

no test coverage detected