-
Notifications
You must be signed in to change notification settings - Fork 7
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
Using map
to produce a tuple inside StackObservations
#310
Comments
I have a query about this bit because it:
I think it would be simpler to have a pattern like obs = map(obs_model.models, obs_model.model_names) do model, model_name
@submodel obs_tmp = generate_observations(
model, y_t[Symbol(model_name)], Y_t[Symbol(model_name)])
obs_tmp
end This might also be better for type stability and not generating lots of objects. xs_tpl = Tuple(i for i = 1:10)
ys_tpl = Tuple(j for j = 1:10)
output = map(xs_tpl, ys_tpl) do x, y
x^y
end
output isa Tuple
#true |
Yes I agree. I think for some reason I wasn't clear you could use |
Yeah there might be an edge case problem... it would be a good first issue for someone to check out? |
Good idea. If this works it could be an option in |
Closed by #358 |
Originally posted by @SamuelBrand1 in #296 (comment)
The text was updated successfully, but these errors were encountered: