do_shotnum_intersection¶
- bapsflib._hdf.utils.helpers.do_shotnum_intersection(shotnum: ndarray, sni_dict: Dict[str, ndarray], index_dict: Dict[str, ndarray]) Tuple[ndarray, Dict[str, ndarray], Dict[str, ndarray]] ¶
Calculates intersection of shotnum and all existing dataset shot numbers, shotnum[sni].
- Parameters:
shotnum – desired HDF5 shot numbers
sni_dict – dictionary of all dataset sni arrays
index_dict – dictionary of all dataset index arrays
- Returns:
intersected and re-calculated versions of
index
andsni
numpy arrays
Recall Array Relationship
shotnum[sni] = dset[index, shotnumkey]