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

Expanded has_any logic #86

Closed
jamesrkg opened this issue Sep 30, 2015 · 1 comment
Closed

Expanded has_any logic #86

jamesrkg opened this issue Sep 30, 2015 · 1 comment
Assignees
Milestone

Comments

@jamesrkg
Copy link
Contributor

We need a way to generate a has_any() logical net that also includes the values contributing to that net underneath it.

So, instead of:

1
2
3
4
net-A
net-B

The option to create:

net-A
1
2
net-B
3
4

Initial thoughts about this are to add an expand kwarg.

net_views.add_method(
    name='Likely any(4,5,6)',
    kwargs={
        'text': {'en-GB': 'Net likely'},
        'logic': [4, 5, 6],
        'expand': True
    }
)

But this would also have to be implemented for block-logic (here I am using the new style proposed in #75):

net_views.add_method(
    name='Top_Middle_Bottom',
    kwargs={
        'block-logic': {
            'expand': True,
            'items': [
                {'top2': frange('9,10'), 'text': {'main': 'Top 2 Box'}},
                {'mid3': frange('6-8'), 'text': {'main': 'Middle 3 Box'}},
                {'bot5': frange('1-5'), 'text': {'main': 'Bottom 5 Box'}},
                {'others': frange('11-12'), 'text': {'main': 'Others'}, 'expand': False}
            ]
        }
    }
)
@jamesrkg jamesrkg self-assigned this Sep 30, 2015
@jamesrkg jamesrkg added this to the RG-11 milestone Sep 30, 2015
@jamesrkg jamesrkg modified the milestones: RG-12, RG-11, RG-13 Oct 9, 2015
@jamesrkg jamesrkg assigned alextanski and unassigned jamesrkg Oct 20, 2015
@jamesrkg jamesrkg modified the milestones: RG-14, RG-13 Oct 24, 2015
@jamesrkg jamesrkg modified the milestones: RG-17, RG-14 Nov 6, 2015
@jamesrkg jamesrkg modified the milestones: RG-19, RG-17 Nov 18, 2015
@jamesrkg jamesrkg modified the milestones: RG-20, RG-19 Dec 4, 2015
@jamesrkg jamesrkg modified the milestones: RG-22, RG-20 Dec 11, 2015
@jamesrkg
Copy link
Contributor Author

This will be resolved by #290.

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

No branches or pull requests

2 participants