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

General attribute support #9

Open
wasade opened this issue Jun 28, 2016 · 0 comments
Open

General attribute support #9

wasade opened this issue Jun 28, 2016 · 0 comments

Comments

@wasade
Copy link
Member

wasade commented Jun 28, 2016

Support for a dict of attributes in BP would be nice. It may make sense to revisit having attribute information associated with the opening parenthesis of a node, and instead of a lookup table. For instance:

t = '(()())'
my_attributes = ['foo', 'bar', 'baz']
lookup = [0, 1, 1, 2, 2, 0]  # index in t -> attribute index

Possible precursor to #8 as it leverages having BP.open available from the first pass of topology parsing, however, constructing the attribute lookup at time of parse should be possible and obviate BP.open.

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