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

Method enable_quantitative_normalization

pyxrf/model/draw_image.py:380–398  ·  view source on GitHub ↗

Enable/Disable quantitative normalization. Parameters ---------- enable: bool Enable quantitative normalization if True, disable if False.

(self, enable)

Source from the content-addressed store, hash-verified

378 self.show_image()
379
380 def enable_quantitative_normalization(self, enable):
381 """
382 Enable/Disable quantitative normalization.
383
384 Parameters
385 ----------
386 enable: bool
387 Enable quantitative normalization if True, disable if False.
388 """
389 self.quantitative_normalization = bool(enable)
390
391 # Propagate current value of 'self.param_quant_analysis' (activate 'observer' functions)
392 # TODO: the following may not be not needed in the view of the current framework
393 tmp = self.param_quant_analysis
394 self.param_quant_analysis = ParamQuantitativeAnalysis()
395 self.param_quant_analysis = tmp
396
397 self.set_low_high_value() # reset low high values based on normalization
398 self.show_image()
399
400 def set_quantitative_ref_eline(self, ref_eline):
401 """

Callers

nothing calls this directly

Calls 3

set_low_high_valueMethod · 0.95
show_imageMethod · 0.95

Tested by

no test coverage detected