Rosetta
Classes | Functions | Variables
pyrosetta.distributed.cluster.serialization Namespace Reference

Classes

class  Serialization
 

Functions

Optional[Union[str, bool]] _parse_compression (Any obj)
 
PackedPose update_scores (PackedPose packed_pose)
 

Variables

string __author__ = "Jason C. Klima"
 
 T = TypeVar("T", bound=Callable[..., Any])
 
 G = TypeVar("G")
 

Function Documentation

◆ _parse_compression()

Optional[Union[str, bool]] pyrosetta.distributed.cluster.serialization._parse_compression ( Any  obj)
private
Parse the input `compression` attribute of `Serialization` class.

◆ update_scores()

PackedPose pyrosetta.distributed.cluster.serialization.update_scores ( PackedPose  packed_pose)
Cache scores into the `PackedPose` object that are not cached in the `Pose` object and do not
have keys with reserved scoretypes, then return the updated `PackedPose` object.

Args:
    packed_pose: the input `PackedPose` object in which to update scores.

Returns:
    A new `PackedPose` object with scores cached in its `Pose` object if scores could be cached,
    otherwise the input `PackedPose` object.

References set().

Referenced by pyrosetta.distributed.cluster.serialization.Serialization.compress_packed_pose(), and pyrosetta.tests.distributed.cluster.test_smoke.SerializationTest.test_serialization().

Variable Documentation

◆ __author__

string pyrosetta.distributed.cluster.serialization.__author__ = "Jason C. Klima"
private

◆ G

pyrosetta.distributed.cluster.serialization.G = TypeVar("G")

◆ T

pyrosetta.distributed.cluster.serialization.T = TypeVar("T", bound=Callable[..., Any])