visbrain.objects.RoiObj.localize_sources¶
- RoiObj.localize_sources(xyz, source_name=None, replace_bad=True, bad_patterns=[-1, 'undefined', 'None'], replace_with='Not found', distance=None)[source][source]¶
Localize source’s using this ROI object.
- Parameters:
- xyzarray_like
Array of source’s coordinates of shape (n_sources, 3)
- source_namearray_like/list | None
List of source’s names.
- replace_badbool | True
Replace bad values (True) or not (False).
- bad_patternslist | [None, -1, ‘undefined’, ‘None’]
Bad patterns to replace if replace_bad is True.
- replace_withstring | ‘Not found’
Replace bad patterns with this string.