AgnostiqHQ/covalent: v0.27.0
Authors/Creators
- 1. Agnostiq
- 2. Nevaeh Technology
Description
Support for positional only, positional or keyword, variable positional, keyword only, variable keyword types of parameters is now added, e.g an electron can now use variable args and variable kwargs if the number/names of parameters are unknown during definition as
def task(*args, **kwargs)which wasn't possible before.Lattice.argsadded to store positional arguments passed to the lattice's workflow function.get_named_paramsfunction added in_shared_files/utils.pywhich will return a tuple containing named positional arguments and named keyword arguments. The names help in showing and storing these parameters in the transport graph.Tests to verify whether all kinds of input paramaters are supported by electron or a lattice.
No longer merging positional arguments with keyword arguments, instead they are separately stored in respective nodes in the transport graph.
inputsreturned from_get_inputsfunction incovalent_dispatcher/_core/execution.pynow contains positional as well as keyword arguments which further get passed to the executor.Executors now support positional and keyword arguments as inputs to their executable functions.
Result object's
_inputsattribute now contains bothargsandkwargs.add_node_for_nested_iterablesis renamed toconnect_node_with_othersandadd_node_to_graphalso renamed toadd_collection_node_to_graphinelectron.py. Some more variable renames to have appropriate self-explanatory names.Nodes and edges in the transport graph now have a better interface to assign attributes to them.
Edge attribute
variablerenamed toedge_name.In
serializefunction of the transport graph, ifmetadata_onlyis True, then onlymetadataattribute of node andsourceandtargetattributes of edge are kept in the then return serializeddata.Updated the tests wherever necessary to reflect the above changes
Deprecated
required_params_passedsince an error will automatically be thrown by thebuild_graphfunction if any of the required parameters are not passed.Removed duplicate attributes from nodes in the transport graph.
Files
AgnostiqHQ/covalent-v0.27.0.zip
Files
(15.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:226e035a143e5160f44a52a4ad3dba0a
|
15.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/AgnostiqHQ/covalent/tree/v0.27.0 (URL)