Skip to content

Commit 2997b29

Browse files
committed
check if training log available
1 parent f55cafd commit 2997b29

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tsuchinoko/graphs/common.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,12 @@ class GPCamHyperparameterLogPlot(MultiPlot):
599599
stack_plots: ClassVar[bool] = False
600600

601601
def update(self, widget, data: 'Data', engine: 'GPCAMInProcessEngine'):
602-
plot_data = np.array(data['hyperparameter training log'])
603-
widget.plot(x=plot_data[:, 0], y=plot_data[:, 1])
602+
if 'hyperparameter training log' in data.states:
603+
plot_data = np.array(data.get(['hyperparameter training log'])
604+
widget.plot(x=plot_data[:, 0], y=plot_data[:, 1])
604605

605-
if self.pen_key is None:
606-
self.colorize(widget, data)
606+
if self.pen_key is None:
607+
self.colorize(widget, data)
607608

608609

609610

0 commit comments

Comments
 (0)