Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support array type of unknown size? #66

Open
prismofeverything opened this issue Jul 19, 2024 · 2 comments
Open

Support array type of unknown size? #66

prismofeverything opened this issue Jul 19, 2024 · 2 comments

Comments

@prismofeverything
Copy link
Contributor

No description provided.

@prismofeverything
Copy link
Contributor Author

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

@prismofeverything
Copy link
Contributor Author

prismofeverything commented Aug 6, 2024

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,
        },
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant