Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
myplotlib
Commits
6d6af97b
Commit
6d6af97b
authored
Jan 25, 2019
by
Yori Fournier
Browse files
forgot to update formatted on client-side now replotting is much faster
avoiding unecessary formatting.
parent
ab30f39a
Pipeline
#662
passed with stage
in 27 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpl_client.py
View file @
6d6af97b
...
...
@@ -59,10 +59,13 @@ class MplClient():
wf
=
self
.
sock
.
makefile
(
mode
=
'wb'
)
print
(
'makefile done'
)
#~ if debug:
print
(
'Client sending '
,
type
(
sig
),
' with content
\"
'
,
sig
.
content
,
'
\"
'
)
if
isinstance
(
sig
,
Query
):
print
(
'Client sending {sig_type}, {query_type} with content {sig_content}'
.
format
(
sig_type
=
type
(
sig
),
query_type
=
sig
.
query_type
,
sig_content
=
sig
.
content
))
else
:
print
(
'Client sending '
,
type
(
sig
),
' with content
\"
'
,
sig
.
content
,
'
\"
'
)
try
:
pickle
.
dump
(
sig
,
wf
)
except
Exception
:
...
...
mpl_fig.py
View file @
6d6af97b
...
...
@@ -681,6 +681,10 @@ class MplFig(metaclass=FigureClassFactory, context=CONTEXT.lower()):
"
.
format
(
dbug
=
DBUG
))
if
((
self
.
reformat
)
or
(
not
self
.
formatted
)):
if
(
self
.
debug
):
print
(
'reformat: {0}, formatted: {1}'
.
format
(
self
.
reformat
,
self
.
formatted
))
status
=
self
.
format_rawdata
()
if
(
not
status
):
return
(
False
)
...
...
@@ -846,6 +850,7 @@ class MplFig(metaclass=FigureClassFactory, context=CONTEXT.lower()):
side will report the errors.
'''
self
.
remote_rawdata
=
rawdata
self
.
formatted
=
False
def
_format_rawdata_client
(
self
):
""" send a signal to the server
...
...
@@ -859,6 +864,8 @@ class MplFig(metaclass=FigureClassFactory, context=CONTEXT.lower()):
for
ax
,
data
in
zip
(
self
.
get_axes
(),
datas
):
ax
.
data
=
data
self
.
formatted
=
True
else
:
print
(
SEVR
+
'The figure is not properly synchronized.'
)
return
(
False
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment