MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / _new_exp_plot_opt

Method _new_exp_plot_opt

pyxrf/model/lineplot.py:574–585  ·  view source on GitHub ↗
(self, change)

Source from the content-addressed store, hash-verified

572
573 @observe("plot_exp_opt")
574 def _new_exp_plot_opt(self, change):
575 if self.io_model.data is None:
576 return
577
578 if change["type"] != "create":
579 if change["value"]:
580 self.plot_experiment()
581 # _show_hide_exp_plot is already called inside 'plot_experiment()',
582 # but visibility flag was not used correctly. So we need to
583 # call it again.
584 self._show_hide_exp_plot(change["value"])
585 self._set_eline_select_controls()
586
587 # @observe('show_exp_opt')
588 # def _update_exp(self, change):

Callers

nothing calls this directly

Calls 3

plot_experimentMethod · 0.95
_show_hide_exp_plotMethod · 0.95

Tested by

no test coverage detected