Takes care of aborting Population and DifferentialEvolution on console keystroke.

When an instance of either object is run on the command line in a console, pressing the Enter key will cause it to quit running.

Since SIGINT (^C) doesn't work properly, it set to SIG_IGN so it's ignored.

Class AbortError DifferentialEvolution.shutdown sends one of these to the errback of a DeferredList to ensure that it aborts.
Class Keyboard Receives STDIN. Pressing the Enter key which will cause ade to quit.
Class KeyboardHolder Constructs a class-wide instance of Keyboard if not already present and offers a couple of methods for using it.
Function callOnAbort Adds func to the list of callbacks to call if the Enter key is pressed.
Function shutdown Shuts down the Keyboard protocol, if one has been constructed.
Function abortNow Causes ade to abort now as if the Enter key had been pressed.
Function restart Starts over, ready to abort again.
Function ignoreKeyboard Causes Enter keypress to be ignored, disabling abort. For development purposes only.
def callOnAbort(func):

Adds func to the list of callbacks to call if the Enter key is pressed.

def shutdown():

Shuts down the Keyboard protocol, if one has been constructed.

def abortNow():

Causes ade to abort now as if the Enter key had been pressed.

def restart():

Starts over, ready to abort again.

def ignoreKeyboard():

Causes Enter keypress to be ignored, disabling abort. For development purposes only.

API Documentation for ade, generated by pydoctor at 2021-09-18 08:41:05.