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

Method set_element

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

Source from the content-addressed store, hash-verified

1015
1016 @observe("element_id")
1017 def set_element(self, change):
1018 self._set_eline_select_controls(element_id=change["value"])
1019 self.compute_manual_peak_intensity(n_id=change["value"])
1020
1021 if change["value"] == 0:
1022 self._reset_eline_plot()
1023 return
1024
1025 self.plot_current_eline()
1026
1027 def plot_current_eline(self, eline=None):
1028 """

Callers

nothing calls this directly

Calls 4

_reset_eline_plotMethod · 0.95
plot_current_elineMethod · 0.95

Tested by

no test coverage detected