def deserialize(cls, ser: Dict[str, Any]) -> 'RunDescriber': """ Make a RunDescriber object based on a serialized version of it """ idp = InterDependencies.deserialize(ser['interdependencies']) rundesc = cls(interdeps=idp) return rundesc
def deserialize(cls, ser: Dict[str, Any]) -> 'RunDescriber': """ Make a RunDescriber object based on a serialized version of it """ # We must currently support new and old type InterDep.s objects idp: Union[InterDependencies, InterDependencies_] if 'paramspecs' in ser['interdependencies'].keys(): idp = InterDependencies.deserialize(ser['interdependencies']) else: idp = InterDependencies_.deserialize(ser['interdependencies']) rundesc = cls(interdeps=idp) return rundesc