captest.CapTest.from_params

classmethod CapTest.from_params(**kwargs)

Construct a CapTest from parameter kwargs.

Recognizes the non-param kwargs meas, sim, meas_path, sim_path in addition to every declared param.*. If both meas and meas_path are supplied the pre-built instance wins and a warning is emitted (same for sim / sim_path).

When both meas and sim end up populated, setup() is called automatically. Otherwise the partially-initialized instance is returned and the caller finishes the workflow manually.

Parameters:

**kwargs – Any declared CapTest parameter, plus meas, sim, meas_path, sim_path.

Return type:

CapTest