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 dynamic multiplicity #45

Open
jqmp opened this issue Oct 30, 2019 · 0 comments
Open

Support dynamic multiplicity #45

jqmp opened this issue Oct 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jqmp
Copy link
Collaborator

jqmp commented Oct 30, 2019

Currently the only way to create multiplicity is by setting fixed values with builder.assign or builder.set. This means the number of values can't depend on other values in the system. However, there are many cases where we'd like to generate a range of values dynamically.

For example, we might want to dynamically generate a parameter range:

@builder
@bn.output_sequence
def alpha(min_alpha, max_alpha, n_alpha_samples):
    return np.linspace(min_alpha, max_alpha, n_alpha_samples)

This will probably require some substantial architectural changes.

@jqmp jqmp added the enhancement New feature or request label Feb 6, 2020
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

1 participant