lisa_noise.types¶
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¶
Classes¶
Loaded and cropped segment ready for model setup and inference. |
|
Unified pipeline output written to disk for every mode. |
Module Contents¶
- lisa_noise.types.Array¶
- lisa_noise.types.Bounds¶
- class lisa_noise.types.SegmentData¶
Loaded and cropped segment ready for model setup and inference.
Produced by
lisa_noise.io.read.load_segment(); consumed by the pipeline and model-setup code.- Parameters:
segment_idx – Index of this segment within the data file.
input_file – Path to the source HDF5 file.
freq – Frequency array cropped to the science band, shape
(Nf,).data_xyz – Complex FFT of X, Y, Z cropped to the science band, shape
(Nf, 3).n_samples – Number of time-domain samples in the segment.
delta_t – Sample interval in seconds.
t0 – Segment start epoch (TCB seconds).
ltts – Light-travel-time structure required by the noise model.
window_kwargs – Taper applied to the time series before the FFT, as recorded by the processing step (e.g.
{"window": "tukey", "alpha": 0.025}), orNonewhen the data file carries no window record.processing_kwargs – Filter and decimation settings recorded by the processing step, as returned by
lisa_noise.io.read.read_processing_kwargs()(fs_in,fs_out,filter,downsample), orNone.science_band –
(f_min, f_max)in Hz thatfreqanddata_xyzwere cropped to.
- segment_idx: int¶
- input_file: str¶
- freq: numpy.ndarray¶
- data_xyz: numpy.ndarray¶
- n_samples: int¶
- delta_t: float¶
- t0: float¶
- ltts: Any¶
- window_kwargs: dict[str, Any] | None = None¶
- processing_kwargs: dict[str, Any] | None = None¶
- science_band: tuple[float, float] | None = None¶
- lisa_noise.types.SCHEMA_VERSION = '2'¶
- class lisa_noise.types.PipelineResult¶
Unified pipeline output written to disk for every mode.
Produced by the pipeline; consumed by
lisa_noise.io. The core fields are always present regardless of mode or inference method; mode-specific metadata lives inextras.- Parameters:
schema_version – Layout version of the result file, see
SCHEMA_VERSION.model_name – Pipeline mode used, e.g.
"modelled".segment_idx – Segment index that was processed.
method – Inference method used, e.g.
"mle"or"sampler".science_band –
[f_min, f_max]in Hz.param_names – Ordered list of free-parameter names.
mle – Best-fit parameter dict mapping name → value.
diagnostics – Convergence / run diagnostics, e.g.
{"converged": True, "nit": 42}.samples – Posterior samples array,
Noneuntil sampler is implemented.geometry – Detector geometry needed to rebuild the covariance:
t0(epoch in TCB seconds) andltts(shape(6,)evaluated light travel times in segwo link order). Model-agnostic.extras – Mode-specific metadata, e.g. knot information for
modelled.
- schema_version: str¶
- model_name: str¶
- segment_idx: int¶
- method: str¶
- science_band: list[float]¶
- param_names: list[str]¶
- mle: dict[str, float]¶
- diagnostics: dict[str, Any] | None = None¶
- samples: numpy.ndarray | None = None¶
- geometry: dict[str, Any]¶
- extras: dict[str, Any]¶