lisa_noise.types ================ .. py:module:: lisa_noise.types .. autoapi-nested-parse:: Shared types for lisa-noise. Centralizes the vocabulary used across package boundaries: lightweight type aliases plus the data contracts that flow *between* layers (IO ↔ pipeline ↔ inference). Types used by only a single package live with that package — e.g. ``SetupData`` (pipeline-internal) and ``InferenceData`` (inference-internal). Attributes ---------- .. autoapisummary:: lisa_noise.types.Array lisa_noise.types.Bounds lisa_noise.types.SCHEMA_VERSION Classes ------- .. autoapisummary:: lisa_noise.types.SegmentData lisa_noise.types.PipelineResult Module Contents --------------- .. py:data:: Array .. py:data:: Bounds .. py:class:: SegmentData Loaded and cropped segment ready for model setup and inference. Produced by :func:`lisa_noise.io.read.load_segment`; consumed by the pipeline and model-setup code. :param segment_idx: Index of this segment within the data file. :param input_file: Path to the source HDF5 file. :param freq: Frequency array cropped to the science band, shape ``(Nf,)``. :param data_xyz: Complex FFT of X, Y, Z cropped to the science band, shape ``(Nf, 3)``. :param n_samples: Number of time-domain samples in the segment. :param delta_t: Sample interval in seconds. :param t0: Segment start epoch (TCB seconds). :param ltts: Light-travel-time structure required by the noise model. :param window_kwargs: Taper applied to the time series before the FFT, as recorded by the processing step (e.g. ``{"window": "tukey", "alpha": 0.025}``), or ``None`` when the data file carries no window record. :param processing_kwargs: Filter and decimation settings recorded by the processing step, as returned by :func:`lisa_noise.io.read.read_processing_kwargs` (``fs_in``, ``fs_out``, ``filter``, ``downsample``), or ``None``. :param science_band: ``(f_min, f_max)`` in Hz that ``freq`` and ``data_xyz`` were cropped to. .. py:attribute:: segment_idx :type: int .. py:attribute:: input_file :type: str .. py:attribute:: freq :type: numpy.ndarray .. py:attribute:: data_xyz :type: numpy.ndarray .. py:attribute:: n_samples :type: int .. py:attribute:: delta_t :type: float .. py:attribute:: t0 :type: float .. py:attribute:: ltts :type: Any .. py:attribute:: window_kwargs :type: dict[str, Any] | None :value: None .. py:attribute:: processing_kwargs :type: dict[str, Any] | None :value: None .. py:attribute:: science_band :type: tuple[float, float] | None :value: None .. py:data:: SCHEMA_VERSION :value: '2' .. py:class:: PipelineResult Unified pipeline output written to disk for every mode. Produced by the pipeline; consumed by :mod:`lisa_noise.io`. The core fields are always present regardless of mode or inference method; mode-specific metadata lives in ``extras``. :param schema_version: Layout version of the result file, see ``SCHEMA_VERSION``. :param model_name: Pipeline mode used, e.g. ``"modelled"``. :param segment_idx: Segment index that was processed. :param method: Inference method used, e.g. ``"mle"`` or ``"sampler"``. :param science_band: ``[f_min, f_max]`` in Hz. :param param_names: Ordered list of free-parameter names. :param mle: Best-fit parameter dict mapping name → value. :param diagnostics: Convergence / run diagnostics, e.g. ``{"converged": True, "nit": 42}``. :param samples: Posterior samples array, ``None`` until sampler is implemented. :param geometry: Detector geometry needed to rebuild the covariance: ``t0`` (epoch in TCB seconds) and ``ltts`` (shape ``(6,)`` evaluated light travel times in segwo link order). Model-agnostic. :param extras: Mode-specific metadata, e.g. knot information for ``modelled``. .. py:attribute:: schema_version :type: str .. py:attribute:: model_name :type: str .. py:attribute:: segment_idx :type: int .. py:attribute:: method :type: str .. py:attribute:: science_band :type: list[float] .. py:attribute:: param_names :type: list[str] .. py:attribute:: mle :type: dict[str, float] .. py:attribute:: diagnostics :type: dict[str, Any] | None :value: None .. py:attribute:: samples :type: numpy.ndarray | None :value: None .. py:attribute:: geometry :type: dict[str, Any] .. py:attribute:: extras :type: dict[str, Any]