suboptimumg.sweep.sweeper_factory#

suboptimumg.sweep.sweeper_factory.create_sweeper(comp_data, var_1, var_2=None, dependencies={})[source]#

Create the appropriate sweeper based on the number of variables.

Parameters:
  • comp_data (CompetitionData) – Competition configuration data model

  • var_1 (SweepParamConfig) – First sweep variable configuration

  • var_2 (SweepParamConfig, optional) – Second sweep variable configuration. If omitted, a 1D sweeper is created.

  • dependencies (dict, optional) – Mapping of dependent parameter names to functions computing their value from the sweep variable(s)

Returns:

A 1D sweeper if var_2 is None, otherwise a 2D sweeper

Return type:

Sweeper1D or Sweeper2D