MeshLike#
- MeshLike#
Type alias for any accepted mesh specification, including an existing
Mesh.This is a superset of
MeshCodeType; it additionally accepts aMeshinstance, which is passed through unchanged.See also
MeshCodeTypeAccepted forms that do not include
Meshitself.Mesh.parse
Examples
>>> from psi_io.mesh import Mesh >>> m = Mesh.parse(0b101, ndim=3) >>> Mesh.parse(m, ndim=3) is m # Mesh passthrough True >>> str(Mesh.parse('half', ndim=2)) 'HALF, HALF'
alias of
Mesh|bool|int|Literal[‘main’, ‘half’] |Sequence[Any]