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

Method img_dict_updated

pyxrf/model/draw_image.py:149–161  ·  view source on GitHub ↗

Observer function to be connected to the fileio model in the top-level gui.py startup Parameters ---------- changed : bool True - 'io_model.img_dict` was updated, False - ignore

(self, change)

Source from the content-addressed store, hash-verified

147 matplotlib.rcParams["axes.formatter.useoffset"] = True
148
149 def img_dict_updated(self, change):
150 """
151 Observer function to be connected to the fileio model
152 in the top-level gui.py startup
153
154 Parameters
155 ----------
156 changed : bool
157 True - 'io_model.img_dict` was updated, False - ignore
158 """
159 if change["value"]:
160 self.select_dataset(self.io_model.img_dict_default_selected_item)
161 self.init_plot_status()
162
163 def init_plot_status(self):
164 # init of scaler for normalization

Callers

nothing calls this directly

Calls 2

select_datasetMethod · 0.95
init_plot_statusMethod · 0.95

Tested by

no test coverage detected