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)
| 1022 | |
| 1023 | |
| 1024 | def 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 | |
| 1039 | def map_data2D_srx( |
no outgoing calls
no test coverage detected