pspec_likelihood.likelihood.DataModelInterface.from_uvpspec#

classmethod DataModelInterface.from_uvpspec(uvp, spw: int = 0, polpair_index: int = 0, theory_uses_spherical_k: bool = False, **kwargs) DataModelInterface[source]#

Extract parameters from UVPSpec object.

Parameters:
  • theory_uses_spherical_k – If True, the theory function only accepts spherical k, rather than cylindrical k.

  • band_index – Which band (0-indexed) to read, if the file contains multiple bands.

Returns:

Initialized DataModelInterface instance

Return type:

DataModelInterface