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

Method reset_low_high

pyxrf/model/draw_image.py:492–498  ·  view source on GitHub ↗

Reset low and high value to default based on normalization.

(self, name)

Source from the content-addressed store, hash-verified

490 self.range_dict[data_name] = {"low": lowv, "low_default": lowv, "high": highv, "high_default": highv}
491
492 def reset_low_high(self, name):
493 """Reset low and high value to default based on normalization."""
494 self.range_dict[name]["low"] = self.range_dict[name]["low_default"]
495 self.range_dict[name]["high"] = self.range_dict[name]["high_default"]
496 self.limit_dict[name]["low"] = 0.0
497 self.limit_dict[name]["high"] = 100.0
498 self.show_image()
499
500 def show_image(self):
501 # Don't plot the image if dictionary is empty (causes a lot of issues)

Callers

nothing calls this directly

Calls 1

show_imageMethod · 0.95

Tested by

no test coverage detected