Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 350f359

Browse filesBrowse files
committed
temporary workaround for image and heatmap data buffers
1 parent 172a86d commit 350f359
Copy full SHA for 350f359

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎fastplotlib/graphics/features/_data.py

Copy file name to clipboardExpand all lines: fastplotlib/graphics/features/_data.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def update_gpu(self):
108108
"""Update the GPU with the buffer"""
109109
self._update_range(None)
110110

111+
def __call__(self, *args, **kwargs):
112+
return self.buffer.data
113+
111114
def __getitem__(self, item):
112115
return self.buffer.data[item]
113116

@@ -159,6 +162,9 @@ def update_gpu(self):
159162
def __getitem__(self, item):
160163
return self._data[item]
161164

165+
def __call__(self, *args, **kwargs):
166+
return self.buffer.data
167+
162168
def __setitem__(self, key, value):
163169
# make sure supported type, not float64 etc.
164170
value = to_gpu_supported_dtype(value)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.