Replies: 1 comment 7 replies
-
I think this one might be general enough. Maybe in Note that this is kind of a special one -- we want to cap it across multiple function calls in order to capture "time since we've found something". There may be 2 attempts or 2000. So I can imagine usage kind of like... countdown = macq.utils.timer.Countdown(600) # 10min
traces = []
while len(traces) < num_traces:
trace = compute_trace(...)
if trace:
traces.append(trace)
countdown.reset()
elif countdown.expired():
# throw an error and explain that things timed out & how to change the constant |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering where the trace-timing wrapper should go file-wise. It's not pddl-centric in any way, it pretty much just takes a function and ensures it runs within the time given by the constant. Maybe in a separate file under the generate folder? Also, are there other wrappers we're going to need to eventually make?
Beta Was this translation helpful? Give feedback.
All reactions