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

Method set_stat_for_all

pyxrf/model/draw_image.py:447–458  ·  view source on GitHub ↗

Set plotting status for all the 2D images, including low and high values. Note: 'self.map_keys' must be updated before calling this function!

(self, bool_val=False)

Source from the content-addressed store, hash-verified

445 self.param_quant_analysis.set_experiment_incident_energy(incident_energy=self.incident_energy)
446
447 def set_stat_for_all(self, bool_val=False):
448 """
449 Set plotting status for all the 2D images, including low and high values.
450 Note: 'self.map_keys' must be updated before calling this function!
451 """
452 self.stat_dict.clear()
453 self.stat_dict = {k: bool_val for k in self.map_keys}
454
455 self.limit_dict.clear()
456 self.limit_dict = {k: {"low": 0.0, "high": 100.0} for k in self.map_keys}
457
458 self.set_low_high_value()
459
460 def set_low_high_value(self):
461 """Set default low and high values based on normalization for each image."""

Callers 1

select_datasetMethod · 0.95

Calls 2

set_low_high_valueMethod · 0.95
clearMethod · 0.80

Tested by

no test coverage detected