cytoflowgui.workflow.serialization¶
Utility bits that let us use camel
to serialize a RemoteWorkflow
.
Many of the dumpers and loaders support serializing pandas
types,
such as pandas.Series
and pandas.DataFrame
, or for testing
serialization with unit tests.
- cytoflowgui.workflow.serialization.load_yaml(path)[source]¶
Load a Python object from a YAML file.
- Parameters
path (string) – The path to the YAML file to load
- Returns
The Python object loaded from the YAML file
- Return type
- cytoflowgui.workflow.serialization.save_yaml(data, path, lock_versions={})[source]¶
Save a Python object to a YAML file
- Parameters
data (object) – The Python object to serialize
path (string) – The path to save to
lock_versions (dict) – A dictionary of types and versions of dumpers to use when serializing.
- cytoflowgui.workflow.serialization.traits_eq(self, other)[source]¶
Are the copyable traits of two
traits.has_traits.HasTraits
equal?
- cytoflowgui.workflow.serialization.traits_hash(self)[source]¶
Get a unique hash of a
traits.has_traits.HasTraits
- cytoflowgui.workflow.serialization.traits_repr(obj)[source]¶
A uniform implementation of __repr__ for
traits.has_traits.HasTraits
- cytoflowgui.workflow.serialization.traits_str(obj)[source]¶
A uniform implementation of __str__ for
traits.has_traits.HasTraits