mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix unsafe call to set_active()
This commit is contained in:
parent
34c41cfc8c
commit
b0000df575
@ -434,7 +434,7 @@ class PatchedMatplotlib:
|
|||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
||||||
# check if we need to restore the active object
|
# check if we need to restore the active object
|
||||||
if set_active and not _pylab_helpers.Gcf.get_active():
|
if set_active and not _pylab_helpers.Gcf.get_active() and stored_figure:
|
||||||
_pylab_helpers.Gcf.set_active(stored_figure)
|
_pylab_helpers.Gcf.set_active(stored_figure)
|
||||||
|
|
||||||
last_iteration = iter if iter is not None else PatchedMatplotlib._get_last_iteration()
|
last_iteration = iter if iter is not None else PatchedMatplotlib._get_last_iteration()
|
||||||
|
Loading…
Reference in New Issue
Block a user