QPMS
Electromagnetic multiple scattering library and toolkit.
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
qpms.results Namespace Reference

Data Structures

class  _LazyDataset
 
class  CrossSectionsResult
 
class  ResonanceBlock
 
class  ResonancesResult
 
class  ResultContainer
 

Functions

 read_tmatrix (path)
 

Variables

dict _POLARIZATION_TO_TYPE = {'electric': 2, 'magnetic': 1, 'longitudinal': 0}
 

Detailed Description

Results container (.qpms.h5) readers for the QPMS Python bindings.

The ``.qpms.h5`` containers are the unified result files written by
qpms-sim (superset of the community ``.tmat.h5`` format; see
``ai_notes/simspec_draft.md`` ยง6). This module provides

* :class:`ResultContainer` โ€” lazy numpy access to every kind group,
  the system arrangement, and provenance;
* live-system reconstruction (``ResultContainer.system()``): from the
  embedded simspec text (container v1.1, ``/system/source/simspec``)
  or, as a fallback, the recorded ``simspec_path``;
* the eigenmode-fields workflow (``ResultContainer.eigenmode_fields``):
  stored eigenvectors + reconstructed system โ†’ scattered-field grids;
  for decomposed periodic containers the stored per-block vectors are
  routed through the symmetry machinery of :mod:`qpms.symmetry` (the
  affine-path D_k blocks or the little-group irreps) before the field
  evaluation;
* :func:`read_tmatrix` โ€” .tmat.h5 files as :class:`qpms.TMatrixSweep`.

Raw numpy access goes through h5py datasets (lazy, no copying until
sliced); the reconstruction and field evaluation use the compiled
bindings.

Function Documentation

◆ read_tmatrix()

qpms.results.read_tmatrix (   path)
Read a community-format .tmat.h5 file as a TMatrixSweep.