Commit 604e9593 authored by Yori Fournier's avatar Yori Fournier
Browse files

Merge branch '104-status_format_rawdata_always_true' into '_compatible_ppd'

Resolve "[BUG] in client context the status of format_rawdata is alway True event when failed"

See merge request !72
parents 7cf2b46f 703315be
Pipeline #692 failed with stage
in 23 minutes and 36 seconds
......@@ -332,7 +332,7 @@ class MplClient():
# Print error message
print(str(formated_data.content))
datas = (None,)
datas = None
else:
# set the figure data to answerSig.value
datas = formated_data.content
......
......@@ -882,13 +882,15 @@ class MplFig(metaclass=FigureClassFactory, context=CONTEXT.lower()):
synchronized figure (server-side) """
if (self.client is not None) and (self.sync_id != -1):
if (True):
datas = self.client.sync_fig_format_rawdata(self.sync_id)
datas = self.client.sync_fig_format_rawdata(self.sync_id)
for ax, data in zip(self.get_axes(), datas):
ax.data = data
if datas is not None:
for ax, data in zip(self.get_axes(), datas):
ax.data = data
self.formatted = True
self.formatted = True
else:
return(False)
else:
print(SEVR + 'The figure is not properly synchronized.')
......
Markdown is supported
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