adsorpy.typing module

Type aliases for the adsorpy library.

adsorpy.typing.BoolArray

1D array of bools.

alias of ndarray[tuple[int], dtype[bool]]

adsorpy.typing.Bools2D

2D array of bools.

alias of ndarray[tuple[int, int], dtype[bool]]

adsorpy.typing.BufferArray

2D array of Polygons. Used for molecules with (different) buffer radii.

alias of ndarray[tuple[int, int], dtype[Polygon]]

adsorpy.typing.CoordPair

2x1 array of a single coordinate pair.

alias of ndarray[tuple[Literal[2], Literal[1]], dtype[float64]]

adsorpy.typing.CoordsArray

2xn array of coordinates.

alias of ndarray[tuple[Literal[2], int], dtype[float64]]

adsorpy.typing.CoordsArray3D

3xn array of floats. 3D coordinates.

alias of ndarray[tuple[Literal[3], int], dtype[float64]]

adsorpy.typing.DistArray

1D array of floats. Often used to denote distances, so usually positive.

alias of ndarray[tuple[int], dtype[float64]]

adsorpy.typing.FloatArray

Array of floats. No dimensions given.

alias of ndarray[tuple[Any, …], dtype[float64]]

adsorpy.typing.GeoArray

1D array of Polygons.

alias of ndarray[tuple[int], dtype[Polygon]]

adsorpy.typing.IdxArray

1D array of ints, used for indices.

alias of ndarray[tuple[int], dtype[int64]]

adsorpy.typing.InDict

A dictionary and the values that can be found in it.

alias of dict[str, str | float | list[str] | Path | None]

adsorpy.typing.PrepGeoArray

1D array of PreparedGeometry[Polygon]s, used for fast vectorised evaluation of overlap and coordinates.

alias of ndarray[tuple[int], dtype[PreparedGeometry]]

adsorpy.typing.RotMatrix

3x3 array of floats, used as a rotation matrix.

alias of ndarray[tuple[Literal[3], Literal[3]], dtype[float64]]