|
Rosetta
|

Static Public Member Functions | |
| def | maybe_encode (value) |
| def | maybe_decode (value) |
Static Public Member Functions inherited from pyrosetta.bindings.scores.serialization.PoseScoreSerializerBase | |
| def | to_pickle (value) |
| def | from_pickle (value) |
| def | to_base64 (value) |
| def | from_base64 (value) |
| def | to_base64_pickle (value) |
| def | from_base64_pickle (value) |
| def | bool_from_str (value) |
Static Private Attributes | |
| tuple | _reserved_types = (str, float) |
| _CustomTypeMetric | |
| dictionary | _custom_type_metrics |
Serialize and deserialize score values for CustomStringValueMetric SimpleMetric.
Examples:
Automatically serialize an arbitrary score value:
`pose.cache["foo"] = value`
Automatically deserialize an arbitrary score value:
`value = pose.cache["foo"]`
Manually serialize an arbitrary score value:
`value = PoseScoreSerializer.maybe_encode(value)`
Manually deserialize an arbitrary score value:
`value = PoseScoreSerializer.maybe_decode(value)`
|
static |
Deserialize the input value if it's serialized.
References ObjexxFCL.len().
Referenced by pyrosetta.bindings.scores.core.PoseCacheAccessor.__getitem__(), pyrosetta.bindings.scores.extra_scores.ExtraScoresAccessorBase.__getitem__(), and pyrosetta.bindings.scores.simple_metrics.SimpleMetricDataAccessorBase.__getitem__().
|
static |
Serialize the input value into a `str` object if it's not a `str` or `float` object.
References pyrosetta.tests.distributed.test_dask.format.
Referenced by pyrosetta.bindings.scores.extra_scores.ExtraScoresAccessorBase.__setitem__(), and pyrosetta.bindings.scores.base.PoseCacheAccessorBase.apply().
|
staticprivate |
|
staticprivate |
|
staticprivate |