Skip to content

Commit 2ff6469

Browse files
Minor changes
1 parent 4954c5b commit 2ff6469

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

batchflow/plotter/plot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,10 +952,10 @@ class Plot:
952952
If False, every time `plot` is called update config with provided keyword arguments, replacing older parameters.
953953
If True, fix plotter config as provided on initialization. Usefull, if one want to reuse this config on updates.
954954
detach : {True, False, 'save'}, default: False
955-
Whether to use run `plot` in a daemon process.
956-
If False, then don't use any daemon processes.
957-
If True, then run :meth:`~.plot` in a daemon process.
958-
If 'save', then run :meth:`~.save` (called from the :meth:`~.plot`) in a daemon process.
955+
Whether to use run `plot` in a daemon thread.
956+
If False, then don't use any daemon threads.
957+
If True, then run :meth:`~.plot` in a daemon thread.
958+
If 'save', then run :meth:`~.save` (called from the :meth:`~.plot`) in a daemon thread.
959959
kwargs :
960960
- For one of `image`, `histogram`, `curve`, `loss` methods of `Layer` (depending on chosen mode).
961961
Parameters and data nestedness levels must match if they are lists meant for differents subplots/layers.

batchflow/tests/detachable_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ def _wait_for_file(path, timeout=5):
2323

2424

2525
def test_detachable_plot_with_detach():
26-
"""Plot.plot with detach=True should complete without PicklingError."""
26+
"""Plot.plot with detach='save' should complete without PicklingError."""
2727
from batchflow.plotter.plot import Plot
2828

2929
data = np.random.rand(10, 10)
3030
with tempfile.TemporaryDirectory() as tmpdir:
3131
savepath = os.path.join(tmpdir, "test_detach.png")
32-
p = Plot(data=data, mode="image", show=False, detach=True, savepath=savepath)
32+
p = Plot(data=data, mode="image", show=False, detach='save', savepath=savepath)
3333
_wait_for_file(savepath)
3434
assert p is not None
3535
assert os.path.exists(savepath)

0 commit comments

Comments
 (0)