ecoli.variants.variant_test

ecoli.variants.variant_test.apply_variant(sim_data, params)[source]

Test variant that adds new attributes to sim_data. Also tests composition of variant functions.

Parameters:
  • sim_data (SimulationDataEcoli) – Simulation data to modify

  • params (dict[str, Any]) –

    Parameter dictionary of the following format:

    {
        'a': int,
        'b': str,
        'c': {
            'd': int,
            'e': float
        }
    }
    

Returns:

Simulation data with the following attributes modified:

sim_data.a
sim_data.b
sim_data.d
sim_data.e

Return type:

SimulationDataEcoli

ecoli.variants.variant_test.variant_test_2(sim_data, params)[source]

Test variant that adds new attributes to sim_data.

Parameters:
  • sim_data (SimulationDataEcoli) – Simulation data to modify

  • params (dict[str, list[Any]]) –

    Parameter dictionary of the following format:

    {
        'd': int,
        'e': float,
    }
    

Returns:

Simulation data with the following attributes modified:

sim_data.d
sim_data.e

Return type:

SimulationDataEcoli