picogl.tests.test_calpha_mesh

Tests for CalphaMeshBuilder.

Functions

_atom(name, residue_number, coords, *[, chain_id, color]) → types.SimpleNamespace

_chain_color_fn(ca_atoms, chain_colors, chain_id) → tuple[numpy.ndarray, numpy.ndarray]

_domain_color_fn(ca_atoms, chain_colors, chain_id) → tuple[numpy.ndarray, numpy.ndarray]

test_calpha_mesh_filters_to_ca_and_sorts_by_residue() → None

test_calpha_mesh_skips_chain_with_one_ca() → None

test_calpha_mesh_chain_mode_broadcasts_chain_colors() → None

test_calpha_mesh_domain_mode_uses_atom_color() → None

test_calpha_mesh_as_meshdata_is_unindexed_line_strip() → None

Module Contents

picogl.tests.test_calpha_mesh._atom(name: str, residue_number: int, coords: tuple[float, float, float], *, chain_id: str = 'A', color: tuple[float, float, float] = (0.2, 0.3, 0.4)) → types.SimpleNamespace[source]
picogl.tests.test_calpha_mesh._chain_color_fn(ca_atoms: list[Any], chain_colors: dict[str, tuple[float, float, float]], chain_id: str) → tuple[numpy.ndarray, numpy.ndarray][source]
picogl.tests.test_calpha_mesh._domain_color_fn(ca_atoms: list[Any], chain_colors: dict[str, tuple[float, float, float]], chain_id: str) → tuple[numpy.ndarray, numpy.ndarray][source]
picogl.tests.test_calpha_mesh.test_calpha_mesh_filters_to_ca_and_sorts_by_residue() → None[source]
picogl.tests.test_calpha_mesh.test_calpha_mesh_skips_chain_with_one_ca() → None[source]
picogl.tests.test_calpha_mesh.test_calpha_mesh_chain_mode_broadcasts_chain_colors() → None[source]
picogl.tests.test_calpha_mesh.test_calpha_mesh_domain_mode_uses_atom_color() → None[source]
picogl.tests.test_calpha_mesh.test_calpha_mesh_as_meshdata_is_unindexed_line_strip() → None[source]