-
Notifications
You must be signed in to change notification settings - Fork 26
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
Future release (1.4.x or 1.5.0 or 2.0) #1350
Comments
Out of curiosity, I think functions that return "nothing" already have their output parameter captured as None, e.g.
Within the worker, current logic, probably can be dramatically improved:
Looks like if a gen returns None or otherwise, the intention may be captured anyway? I dunno |
If you look at most persistent gens in gen_funcs they return
not
which will result in the last set of points being added to the end of H as duplicates if we dont require |
Fair enough; by the last set of points do you mean the last generated, but not sent out, set of points being added as duplicates? Would those points having sim_ids by that point prevent duplication? Maybe I'm missing something |
Look at this code, which is typical for our persistent gens. while tag not in [STOP_TAG, PERSIS_STOP]:
H_o = np.zeros(b, dtype=gen_specs["out"])
H_o["x"] = persis_info["rand_stream"].uniform(lb, ub, (b, n))
tag, Work, calc_in = ps.send_recv(H_o)
return H_o, persis_info, FINISHED_PERSISTENT_GEN_TAG H_o is sent to the manager in We should make our gens end with
unless we do something after the loop and actually make a different H_o. |
Target date: TBC
Question: Should
gen_on_manager
becomes default (what about non-persistent gens). This is very breaking hence might be for 2.0.Support sub-classed generators with an ask/tell interface Interface with Generators that expose an .ask/.tell interface #1240
Make sure persistent gens return None as first parameter unless want to return something.
Resolve Better capture dependencies for 'extra' tests. #1403 and Pydantic warnings #1404
Updating forces and other examples (inc. notebooks) to use gen on manager. Update platform tutorials.
Better interface support for generator running outside of libE (and make example notebook).
Create unified index of examples - based on gen type - points to location (libE or community examples) and shows gen/calling script examples.
Improve coverage of core libE methods (if reasonably easy to do so). Files to consider
gpu_detect but not if that's difficult to test/mock.Same for tcp_mgrCanceled / Put on hold:
Questions:
use_persis_return_sim
be deprecated - if so now or next release. Requires ensuring all functions update to returning None (including in docs) - which should do anyway.The text was updated successfully, but these errors were encountered: