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

Improvements to attach! #10

Closed
ajkeller34 opened this issue Feb 21, 2017 · 0 comments
Closed

Improvements to attach! #10

ajkeller34 opened this issue Feb 21, 2017 · 0 comments

Comments

@ajkeller34
Copy link
Contributor

c/o @mtfang

In the attach! method, is it possible to also allow for t and i to be of type Array instead of Real/Integer? This way multiple objects can be attached directly instead of through some for loop or map function.

Use case example (attaching multiple bridges to multiple segments):

for j in [1, 6, 8, 10]
    for k in 0:0.1:1
        attach!(p12, CellReference(default_bridge, rot = π/2), k, j)
    end
end

Would be:

attach!(p12, CellReference(default_bridge, rot = π/2), 0:0.1:1, [1, 6, 8, 10])
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