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

More flexible topology rewiring for glob schemas #168

Open
U8NWXD opened this issue Feb 24, 2022 · 5 comments
Open

More flexible topology rewiring for glob schemas #168

U8NWXD opened this issue Feb 24, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@U8NWXD
Copy link
Member

U8NWXD commented Feb 24, 2022

Consider a process (e.g. multibody physics) with a ports schema like this:

{
    'agents': {
        '*': {
            'a': {...},
            'b': {...},
        },
    },
}

Now imagine that we want to use this process with an agent with a store hierarchy like this:

{
    'a': {...}
    'boundary': {
        'b': {...},
    },
}

We don't currently have a way to wire the environment process to this agent.

@U8NWXD U8NWXD added the enhancement New feature or request label Feb 24, 2022
@U8NWXD
Copy link
Member Author

U8NWXD commented Mar 19, 2022

Proposed topology syntax for this situation:

{
    'agents': {
        '_path': ('agents',),
        ('*', 'b'): ('agents', '*', 'boundary', 'b'),
    }
}

@eagmon eagmon self-assigned this Mar 19, 2022
@eagmon
Copy link
Member

eagmon commented Mar 19, 2022

I'll work on this!

@eagmon
Copy link
Member

eagmon commented Mar 19, 2022

'agents' is that root path, so I think it should be more like this. 'agents' is removed from the rewired path.:

{
    'agents': {
        '_path': ('agents',),
        ('*', 'b'): ('*', 'boundary', 'b'),
    }
}

@prismofeverything
Copy link
Contributor

prismofeverything commented Mar 20, 2022 via email

@eagmon
Copy link
Member

eagmon commented Mar 20, 2022

The reason for this would be to rewire one process's glob ports schema to match another's. The * glob does something that can't be done otherwise -- it can access n substore simultaneously as the simulation grows. You can't do that with a fixed topology in advance.

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

No branches or pull requests

3 participants