Skip to content

experiment

Experiment

Experiment(
    analyzer,
    positioner,
    thetas,
    phis,
    polarizations,
    frequency,
)

An abstraction class that simplifies running experiments from scripts.

The Experiment class is effectively a wrapper around a function that performs a single measurement. This class should only be used during scripting. In the GUI, it's related class, ExperimentWorker is used, which does various thread / Qt related things.

Parameters:

  • analyzer (skrf.vi.vna.VNA) –

    Network Analyzer

  • positioner (Positioner) –

    Positioner instance

  • thetas (np.ndarray) –

    Array of theta locations (in degrees)

  • phis (np.ndarray) –

    Array of phi locations (in degrees)

  • polarizations (list[tuple[str, int, int]]) –

    List of (name, a, b), where a, b are port numbers representing which S parameters correspond to the polarization.

run

run()

Run the experiment.

Runs the experiment as defined. This command will display status information using the rich library.

Returns: