Open prismofeverything opened 1 month ago
This could warrant a different type, vector
which allows adjustable arrays.
Also, we could implement as config "references", ie:
class ArrayProcess(Process):
config = {
'shape': 'list[integer]',
'array': 'array[float,{shape}]',
}
def instantiate(config):
composite = {
'_type': 'process',
'address': 'ArrayProcess',
'config': {
'shape': (3, 5, 2),
'array': reference_to_some_array,
},
}
Are lists sufficient here?
If arrays are different shapes in general they are not compatible - but there are use cases where the process could accept an array of any size or output an array of any size