MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / __init__

Method __init__

dwave/cloud/upload.py:374–380  ·  view source on GitHub ↗
(self, data, chunk_size)

Source from the content-addressed store, hash-verified

372 raise TypeError("bytes/str/file-like data required")
373
374 def __init__(self, data, chunk_size):
375 self.data = data
376 self.view = self._thread_safe_data_view(data)
377
378 if chunk_size <= 0:
379 raise ValueError("positive integer required for chunk size")
380 self.chunk_size = int(chunk_size)
381
382 @property
383 def total_size(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected