-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor/oo more tests #1051
Refactor/oo more tests #1051
Conversation
out=[("num_procs", int), ("num_gpus", int), ("x", float, 2)], | ||
user={ | ||
"initial_batch_size": gpu_test.nworkers - 1, | ||
"max_procs": (gpu_test.nworkers - 1) // 2, # Any sim created can req. 1 worker up to max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test needs updating following #1058, I can do this if it helps.
Update this line and add second loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops - I meant test_GPU_variable_resources_multi_task.py, But I think this line should be changed here also.
I think adding the parse_args option to ensemble would be good, as otherwise, the knowing of nworkers is a bit magical. |
assert np.array_equal(H0["x"], H["x"]) | ||
assert np.all(H["sim_ended"]) | ||
sampling = Ensemble() | ||
sampling.H0 = H0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should stick to function calls, matter of style. Or should we make this an option to Ensemble()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sampling = Ensemble(H0=H0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both ways of setting H0 (and other attributes) are valid:
sampling = Ensemble(H0=H0)
or:
sampling = Ensemble()
sampling.H0 = H0
No description provided.