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

Function get_total_scan_point

pyxrf/model/load_data_from_db.py:1024–1036  ·  view source on GitHub ↗

Find the how many data points are recorded. This number may not equal to the total number defined at the start of the scan due to scan stop or abort.

(hdr)

Source from the content-addressed store, hash-verified

1022
1023
1024def get_total_scan_point(hdr):
1025 """
1026 Find the how many data points are recorded. This number may not equal to the total number
1027 defined at the start of the scan due to scan stop or abort.
1028 """
1029 evs = hdr.events()
1030 n = 0
1031 try:
1032 for e in evs:
1033 n = n + 1
1034 except IndexError:
1035 pass
1036 return n
1037
1038
1039def map_data2D_srx(

Callers 1

map_data2D_srx_oldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected