Commit 42397d34 authored by Valentin Valls's avatar Valentin Valls
Browse files

Patch numpy array as writtable

parent 510843e3
......@@ -304,6 +304,14 @@ class FlintApi:
def run_method(self, plot_id, method, args, kwargs):
# Patch numpy arrays
for i, v in enumerate(args):
if isinstance(v, numpy.ndarray):
args[i] = _aswritablearray(v)
for k, v in kwargs.items():
if isinstance(v, numpy.ndarray):
kwargs[k] = _aswritablearray(v)
plot = self._get_plot_widget(plot_id)
silxPlot = plot._silxPlot()
method = getattr(silxPlot, method)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment