AgnostiqHQ/covalent: v0.27.0
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.args
added to store positional arguments passed to the lattice's workflow function.get_named_params
function added in_shared_files/utils.py
which 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.
inputs
returned from_get_inputs
function incovalent_dispatcher/_core/execution.py
now 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
_inputs
attribute now contains bothargs
andkwargs
.add_node_for_nested_iterables
is renamed toconnect_node_with_others
andadd_node_to_graph
also renamed toadd_collection_node_to_graph
inelectron.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
variable
renamed toedge_name
.In
serialize
function of the transport graph, ifmetadata_only
is True, then onlymetadata
attribute of node andsource
andtarget
attributes of edge are kept in the then return serializeddata
.Updated the tests wherever necessary to reflect the above changes
Deprecated
required_params_passed
since an error will automatically be thrown by thebuild_graph
function 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)