executors.Executor
Executor()THE BLUEPRINT: This is an Abstract Base Class (ABC). It does not actually run any simulations itself. Instead, it acts as a strict rulebook for any future executors we build.
The rule is: Any class that inherits from ‘Executor’ MUST have a method called ‘run’, it MUST accept a Pandas DataFrame as input, and it MUST return a Pandas DataFrame. This guarantees that DigiQual’s main loop can talk to ANY solver blindly, knowing that ‘.run()’ will always work.
Methods
| Name | Description |
|---|---|
| run | Executes the simulation for a batch of input samples. |
run
run(samples)Executes the simulation for a batch of input samples.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| samples | pd.DataFrame | A table of input variables generated by DigiQual (e.g., columns for ‘Length’ and ‘Angle’). | required |
Returns
| Name | Type | Description |
|---|---|---|
| pd.DataFrame | pd.DataFrame: A table containing both the original inputs and the newly calculated simulation outcomes. |