gemd.entity.util module
Utility methods.
- gemd.entity.util.array_like()
 Figure out what kinds of list-like things we should be supporting for list type-checks.
- Returns
 A tuple of supported array-like classes.
- Return type
 tuple
- gemd.entity.util.complete_material_history(mat) List[Dict[str, Any]]
 Get a list of every single object in the material history, all as dictionaries.
This is useful for testing, if we want the context list that can be used to rehydrate an entire material history.
- Parameters
 mat (MaterialRun) – root material run
- Returns
 a list containing every object connected to mat, each a dictionary with all links substituted.
- Return type
 list
- gemd.entity.util.make_instance(base_spec)
 Create a set of Run objects that mimic the connectivity of the passed Spec object.
- Parameters
 base_spec (BaseObject) – A spec instance that may point to other specs.
- Returns
 The run instance that is created, and may point to other runs.
- Return type