nexus_reader¶
find_matching_scans(filename, match_field='scan_command', search_scans_before=10, search_scans_after=None)
¶
Find scans with scan numbers close to the current file with matching scan command
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
nexus file to start at (must include scan number in filename) |
required |
match_field
|
str
|
nexus field to compare between scan files |
'scan_command'
|
search_scans_before
|
int
|
number of scans before current scan to look for |
10
|
search_scans_after
|
int | None
|
number of scans after current scan to look for (None==before) |
None
|
Returns:
| Type | Description |
|---|---|
list[str]
|
list of scan files that exist and have matching field values |