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

Function _get_range

pyxrf/core/quant_analysis.py:565–570  ·  view source on GitHub ↗
(n_elements)

Source from the content-addressed store, hash-verified

563 # dimension, then all pixels are used, including edges.
564
565 def _get_range(n_elements):
566 if n_elements > 2:
567 n_min, n_max = 1, n_elements - 1
568 else:
569 n_min, n_max = 0, n_elements
570 return n_min, n_max
571
572 ny_min, ny_max = _get_range(norm_map.shape[0])
573 nx_min, nx_max = _get_range(norm_map.shape[1])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected