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

Method set_quantitative_ref_eline

pyxrf/model/draw_image.py:400–417  ·  view source on GitHub ↗

Set emission line used as a reference for quantitative normalization. If empty string, then calibration is performed only for emission lines with existing calibration.

(self, ref_eline)

Source from the content-addressed store, hash-verified

398 self.show_image()
399
400 def set_quantitative_ref_eline(self, ref_eline):
401 """
402 Set emission line used as a reference for quantitative normalization. If empty string,
403 then calibration is performed only for emission lines with existing calibration.
404 """
405 ref_eline = str(ref_eline) if (ref_eline is not None) else ""
406 if not self.param_quant_analysis.get_eline_calibration(ref_eline):
407 ref_eline = ""
408 self.quantitative_ref_eline = ref_eline
409
410 # Propagate current value of 'self.param_quant_analysis' (activate 'observer' functions)
411 # TODO: the following may not be not needed in the view of the current framework
412 tmp = self.param_quant_analysis
413 self.param_quant_analysis = ParamQuantitativeAnalysis()
414 self.param_quant_analysis = tmp
415
416 self.set_low_high_value() # reset low high values based on normalization
417 self.show_image()
418
419 def set_plot_scatter(self, is_scatter):
420 self.scatter_show = is_scatter

Callers

nothing calls this directly

Calls 4

set_low_high_valueMethod · 0.95
show_imageMethod · 0.95
get_eline_calibrationMethod · 0.80

Tested by

no test coverage detected