Device3DPropertyResult#
- class nvmolkit.descriptors3d.Device3DPropertyResult(
- properties: dict[str, AsyncGpuResult],
- mol_indices: AsyncGpuResult,
- conf_indices: AsyncGpuResult,
- gpu_id: int,
- n_mols: int,
Per-conformer 3D properties on the GPU, labeled by molecule and conformer.
Behaves as a read-only mapping from property name to an
AsyncGpuResultwhose first dimension isn_conformers, in request order. Scalar properties have shape(n_conformers,)and vector properties(n_conformers, width), with widths listed onProperty3D. Values are float32 forSINGLEand float64 forFULL. Keys may be given as names orProperty3Dmembers.Row
iof every property belongs to conformerconf_indices[i]of input moleculemol_indices[i].conf_indicesis the conformer’s position within its molecule, not its RDKit conformer ID. When the properties were calculated from aDevice3DResult, rows follow that result and the label buffers are shared with it, so rows align with itsenergiesandconverged.- mol_indices#
int32
(n_conformers,)input-molecule index of each row.
- conf_indices#
int32
(n_conformers,)per-molecule conformer position of each row.
- gpu_id#
GPU holding every buffer.
- n_mols#
Number of input molecules, including those without conformers.
- __init__(
- properties: dict[str, AsyncGpuResult],
- mol_indices: AsyncGpuResult,
- conf_indices: AsyncGpuResult,
- gpu_id: int,
- n_mols: int,
Create a result from per-property device buffers and their row labels.
- dense(
- pad_value: float = nan,
Materialize padded molecule/conformer tensors for every property.
Molecules with fewer than
max_confsconformers (including none) receivepad_value. Reading the index tensors synchronizes implicitly.
- get(
- k[,
- d,]
- items() a set-like object providing a view on D's items#
- keys() a set-like object providing a view on D's keys#
- values() an object providing a view on D's values#