pick_up module
Define an object to keep measurements at a pick-up.
- class PickUp(name, df_data, instrument_factory, instruments_kw, position, color)[source]
Bases:
IMeasurementPointHold measurements at a single pick-up.
- Parameters:
- _add_key_val_to_dictionaries(key, value, instruments_kw)[source]
Add
key-valuepair to sub-dictionaries ofinstruments_kw.In particular, used to instantiate every
Instrumentwith its position.
- _abc_impl = <_abc._abc_data object at 0x7466cbc47140>
- add_instrument(*instruments)
Add a new
Instrumenttoinstruments.A priori, useful only for
VirtualInstrument, when they rely on otherInstrumentobjects to be fully initialized.- Parameters:
instruments (
Instrument)- Return type:
- add_post_treater(post_treater, instrument_class=<class 'multipac_testbench.instruments.instrument.Instrument'>)
Add post-treatment functions to instruments.
- get_instrument(*args, **kwargs)
Get instrument which is (sub) class of
instrument_class.Raise an error if several instruments match the condition.
- Return type:
- get_instruments(instrument_class, instruments_to_ignore=())
Get instruments which are (sub) classes of
instrument_class.An empty list is returned when current pick-up has no instrument of the desired instrument class.
- Parameters:
instrument_class (
ABCMeta)instruments_to_ignore (
Sequence[Instrument|str], default:())
- Return type:
- remove_instrument(*instruments)
Remove instruments from the list.
- Parameters:
instruments (
Instrument)- Return type:
- remove_post_treater(post_treater=None, index=None, instrument_class=<class 'multipac_testbench.instruments.instrument.Instrument'>)
Remove post-treatment function from instruments.
- Parameters:
post_treater (
Callable[[ndarray[tuple[Any,...],dtype[double]]],ndarray[tuple[Any,...],dtype[double]]] |None, default:None) – Post-treater to remove. Has priority overindex.index (
int|None, default:None) – Index of post-treater to remove.instrument_class (
ABCMeta, default:<class 'multipac_testbench.instruments.instrument.Instrument'>) – Type of instruments concerned by removing.
- Return type:
- scatter_instruments_data(instrument_class_axes, xdata, instrument_multipactor_bands)
Scatter data measured by desired instruments.
- instruments
Holds all
Instrumentinstances at this location