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

Method _process_sBIT

_plotly_utils/png.py:1768–1776  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

1766 raise FormatError("gAMA chunk has incorrect length.")
1767
1768 def _process_sBIT(self, data):
1769 self.sbit = data
1770 if (
1771 self.colormap
1772 and len(data) != 3
1773 or not self.colormap
1774 and len(data) != self.planes
1775 ):
1776 raise FormatError("sBIT chunk has incorrect length.")
1777
1778 def _process_pHYs(self, data):
1779 # http://www.w3.org/TR/PNG/#11pHYs

Callers

nothing calls this directly

Calls 1

FormatErrorClass · 0.85

Tested by

no test coverage detected