condition_shotnumο
- bapsflib._hdf.utils.helpers.condition_shotnum(shotnum: Any, dset_list: List[Dataset], shotnumkey_list: List[str]) ndarrayο
Conditions the
shotnumargument forHDFReadControlsand :HDFReadData.- Parameters:
shotnum (array_like or Union[int, slice, List[int,β¦]]) β Array like object of desired shot numbers.
dset_list (List[h5py.Dataset]) β List of control dataset instances that the shot number
shotnumshould be conditioned againstshotnumkey_list (List[str]) β A one-to-one list with
dset_listthat names the shot number column filed in the associated dataset.
- Returns:
conditioned
shotnumnumpy array- Return type:
Condition Criteria
Any \(\mathbf{shotnum} \le 0\) will be removed.
A
ValueErrorwill be thrown if the conditioned array is NULL.