You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the desired new or improved feature.
While we're currently able to abort an optimization, we aren't able to abort a simulation.
We should have this capability, to handle, for instance:
when the user launches a simulation having mistyped the number of bits she wants to run.
Expected behavior
An item in the Simulation menu, which aborts the currently running simulation when selected.
Also, a keyboard shortcut for this menu item.
Screenshots
(n/a)
Desktop (please complete the following information):
OS: (all)
Python Version (all)
PyBERT Version (next release)
Additional context
(n/a)
The text was updated successfully, but these errors were encountered:
This will force us to breakout down our my_run_sweep to check that the thread is still alive and should it continue since today the thread just calls one function and returns.
defrun(self):
"""Run the simulation(s)."""my_run_sweeps(self.the_pybert)
Comparing that to the optimization threads that run an iteration of minimization and then check if it should stop or not.
res=minimize(
self.do_opt_tx,
old_taps,
bounds=bounds,
constraints=cons,
options={"disp": False, "maxiter": max_iter},
)
...
defdo_opt_tx(self, taps):
"""Run the Tx Optimization."""sleep(0.001) # Give the GUI a chance to acknowledge user clicking the Abort button.ifself.stopped():
raiseRuntimeError("Optimization aborted.")
pybert=self.pyberttuners=pybert.tx_tap_tunerstaps=list(taps)
fortunerintuners:
iftuner.enabled:
tuner.value=taps.pop(0)
returnpybert.cost
This will tie nicely into #119. We can pull apart my_run_sweep and then have the correct solver get created for time or statistical simulation.
Describe the desired new or improved feature.
While we're currently able to abort an optimization, we aren't able to abort a simulation.
We should have this capability, to handle, for instance:
Expected behavior
An item in the Simulation menu, which aborts the currently running simulation when selected.
Also, a keyboard shortcut for this menu item.
Screenshots
(n/a)
Desktop (please complete the following information):
Additional context
(n/a)
The text was updated successfully, but these errors were encountered: